talhasideline commited on
Commit
cfd1cbd
·
verified ·
1 Parent(s): 39d630e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -69,7 +69,13 @@ async def chat_interface(user_role, user_team, user_prompt):
69
  title = str(rec.get('title', 'No title'))[:60] # Limit title length
70
  content_type = str(rec.get('type', 'unknown'))
71
 
72
- item = f"{i+1}. [{content_type}] {title}"
 
 
 
 
 
 
73
  rec_list.append(item)
74
 
75
  if rec_list:
 
69
  title = str(rec.get('title', 'No title'))[:60] # Limit title length
70
  content_type = str(rec.get('type', 'unknown'))
71
 
72
+ # Show URL for multimedia items, content type for others
73
+ if content_type == 'multimedia' and rec.get('url'):
74
+ url = str(rec.get('url', ''))[:50] # Limit URL length
75
+ item = f"{i+1}. [{content_type}] {title}\n 🔗 {url}"
76
+ else:
77
+ item = f"{i+1}. [{content_type}] {title}"
78
+
79
  rec_list.append(item)
80
 
81
  if rec_list: