Kaung Myat Htet commited on
Commit
c055062
1 Parent(s): daa66cc

fix f print

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -80,7 +80,9 @@ def chat_gen(message, history, return_buffer=True):
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
 
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
+ yield buffer
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