Update app.py
Browse files
app.py
CHANGED
|
@@ -1166,14 +1166,14 @@ if not st.session_state.messages:
|
|
| 1166 |
if document_topics:
|
| 1167 |
if len(document_topics) == 1:
|
| 1168 |
#topic_preview = f" I have information about {document_topics[0]}."
|
| 1169 |
-
topic_preview = f"
|
| 1170 |
elif len(document_topics) == 2:
|
| 1171 |
#topic_preview = f" I have information about {document_topics[0]} and {document_topics[1]}."
|
| 1172 |
-
topic_preview = f"
|
| 1173 |
else:
|
| 1174 |
topic_list = ", ".join([f"**{topic}**" for topic in document_topics[:-1]])
|
| 1175 |
last_topic = f"**{document_topics[-1]}**"
|
| 1176 |
-
topic_preview = f"
|
| 1177 |
else:
|
| 1178 |
topic_preview = "Let's explore interesting ideas together using our curated knowledge base."
|
| 1179 |
|
|
@@ -1191,13 +1191,13 @@ with col2:
|
|
| 1191 |
document_topics = get_document_topics()
|
| 1192 |
if document_topics:
|
| 1193 |
if len(document_topics) == 1:
|
| 1194 |
-
topic_preview = f"
|
| 1195 |
elif len(document_topics) <= 3:
|
| 1196 |
topic_list = " and ".join([f"**{topic}**" for topic in document_topics])
|
| 1197 |
-
topic_preview = f"
|
| 1198 |
else:
|
| 1199 |
topic_list = ", ".join([f"**{topic}**" for topic in document_topics[:2]])
|
| 1200 |
-
topic_preview = f"
|
| 1201 |
else:
|
| 1202 |
topic_preview = "Let's explore interesting ideas together using our curated knowledge base."
|
| 1203 |
welcome_msg = topic_preview
|
|
|
|
| 1166 |
if document_topics:
|
| 1167 |
if len(document_topics) == 1:
|
| 1168 |
#topic_preview = f" I have information about {document_topics[0]}."
|
| 1169 |
+
topic_preview = f"Hello, we can talk about **{document_topics[0]}**, exploring together interesting ideas and reflecting upon our shared challenges, using our curated knowledge base."
|
| 1170 |
elif len(document_topics) == 2:
|
| 1171 |
#topic_preview = f" I have information about {document_topics[0]} and {document_topics[1]}."
|
| 1172 |
+
topic_preview = f"Hello, we can talk about **{document_topics[0]}** and **{document_topics[1]}**, exploring together interesting ideas and reflecting upon our shared challenges, using our curated knowledge base."
|
| 1173 |
else:
|
| 1174 |
topic_list = ", ".join([f"**{topic}**" for topic in document_topics[:-1]])
|
| 1175 |
last_topic = f"**{document_topics[-1]}**"
|
| 1176 |
+
topic_preview = f"Hello, we can talk about {topic_list}, and {last_topic}, exploring together interesting ideas and reflecting upon our shared challenges, using our curated knowledge base."
|
| 1177 |
else:
|
| 1178 |
topic_preview = "Let's explore interesting ideas together using our curated knowledge base."
|
| 1179 |
|
|
|
|
| 1191 |
document_topics = get_document_topics()
|
| 1192 |
if document_topics:
|
| 1193 |
if len(document_topics) == 1:
|
| 1194 |
+
topic_preview = f"Hello, we can talk about **{document_topics[0]}**, exploring together interesting ideas and reflecting upon our shared challenges, using our curated knowledge base."
|
| 1195 |
elif len(document_topics) <= 3:
|
| 1196 |
topic_list = " and ".join([f"**{topic}**" for topic in document_topics])
|
| 1197 |
+
topic_preview = f"Hello, we can talk about {topic_list}, exploring together interesting ideas and reflecting upon our shared challenges, using our curated knowledge base."
|
| 1198 |
else:
|
| 1199 |
topic_list = ", ".join([f"**{topic}**" for topic in document_topics[:2]])
|
| 1200 |
+
topic_preview = f"Hello, we can talk about {topic_list}, and more, exploring together interesting ideas and reflecting upon our shared challenges, using our curated knowledge base."
|
| 1201 |
else:
|
| 1202 |
topic_preview = "Let's explore interesting ideas together using our curated knowledge base."
|
| 1203 |
welcome_msg = topic_preview
|