Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
update writer
Browse files- src/utils/writer.py +7 -1
src/utils/writer.py
CHANGED
@@ -16,7 +16,13 @@ def typewriter(text: str, references: list, speed: int, app: str = "inc"):
|
|
16 |
if app == "knowledge_hub":
|
17 |
curr_full_text += "\n **Note:** \n"
|
18 |
curr_full_text += "\n"
|
19 |
-
curr_full_text += "This response is generated based on the available documents in the database and may not represent a comprehensive or definitive view of the topic. For complete and accurate scientific knowledge, consider consulting the original papers or additional sources. \n"
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
container.markdown(curr_full_text)
|
21 |
|
22 |
curr_full_text += "\n **References** \n"
|
|
|
16 |
if app == "knowledge_hub":
|
17 |
curr_full_text += "\n **Note:** \n"
|
18 |
curr_full_text += "\n"
|
19 |
+
curr_full_text += "This response is generated based on the available documents in the database and may not represent a comprehensive or definitive view of the topic. For complete and accurate scientific knowledge, consider consulting the original papers or additional sources. If the answer indicates that no response is possible, you may consider using a different filter or trying without any filter at all. \n"
|
20 |
+
container.markdown(curr_full_text)
|
21 |
+
|
22 |
+
if app == "inc":
|
23 |
+
curr_full_text += "\n **Note:** \n"
|
24 |
+
curr_full_text += "\n"
|
25 |
+
curr_full_text += "If the answer is that no response is possible, you may consider applying a different filter. \n"
|
26 |
container.markdown(curr_full_text)
|
27 |
|
28 |
curr_full_text += "\n **References** \n"
|