Spaces:
Sleeping
Sleeping
Kaung Myat Htet
commited on
Commit
·
daa66cc
1
Parent(s):
c55b65b
fix app.py
Browse files
app.py
CHANGED
@@ -79,8 +79,8 @@ def chat_gen(message, history, return_buffer=True):
|
|
79 |
yield buffer
|
80 |
|
81 |
buffer += "I use the following websites data to generate the above answer: \n"
|
82 |
-
for
|
83 |
-
buffer += f'{
|
84 |
else:
|
85 |
passage = "I am sorry. I do not have relevant information to answer on that specific topic. Please try another question."
|
86 |
buffer += passage
|
|
|
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 |
else:
|
85 |
passage = "I am sorry. I do not have relevant information to answer on that specific topic. Please try another question."
|
86 |
buffer += passage
|