Spaces:
Sleeping
Sleeping
Kaung Myat Htet
commited on
Commit
·
06369a1
1
Parent(s):
d3e4be9
fix temp
Browse files
app.py
CHANGED
@@ -76,12 +76,13 @@ def chat_gen(message, history, return_buffer=True):
|
|
76 |
}
|
77 |
for token in conv_chain.stream(state):
|
78 |
buffer += token
|
|
|
|
|
|
|
|
|
|
|
79 |
|
80 |
-
buffer += "I use the following websites data to generate the above answer: \n"
|
81 |
-
for doc in retrieved_docs:
|
82 |
-
buffer += f"{doc['metadata']['source']}\n"
|
83 |
|
84 |
-
yield buffer
|
85 |
else:
|
86 |
passage = "I am sorry. I do not have relevant information to answer on that specific topic. Please try another question."
|
87 |
buffer += passage
|
|
|
76 |
}
|
77 |
for token in conv_chain.stream(state):
|
78 |
buffer += token
|
79 |
+
yield buffer
|
80 |
+
|
81 |
+
# buffer += "I use the following websites data to generate the above answer: \n"
|
82 |
+
# for doc in retrieved_docs:
|
83 |
+
# buffer += f"{doc['metadata']['source']}\n"
|
84 |
|
|
|
|
|
|
|
85 |
|
|
|
86 |
else:
|
87 |
passage = "I am sorry. I do not have relevant information to answer on that specific topic. Please try another question."
|
88 |
buffer += passage
|