hymai commited on
Commit
3aff247
·
verified ·
1 Parent(s): 072c024

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -202,7 +202,7 @@ with gr.Blocks() as demo:
202
  bot_message = query_engine.query(user_message + "Let's think step by step to get the correct answer. If you cannot provide an answer, say you don't know.")
203
  source_nodes_list = bot_message.source_nodes
204
  for nodes in source_nodes_list:
205
- source_nodes = source_nodes + nodes + "\n\n"
206
  final_response = bot_message.response + "\n Source nodes: \n" + source_nodes
207
  history[-1][1] = ""
208
  for character in final_response:
 
202
  bot_message = query_engine.query(user_message + "Let's think step by step to get the correct answer. If you cannot provide an answer, say you don't know.")
203
  source_nodes_list = bot_message.source_nodes
204
  for nodes in source_nodes_list:
205
+ source_nodes = source_nodes + str(nodes) + "\n\n"
206
  final_response = bot_message.response + "\n Source nodes: \n" + source_nodes
207
  history[-1][1] = ""
208
  for character in final_response: