hymai commited on
Commit
769b881
·
verified ·
1 Parent(s): f300490

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -203,7 +203,7 @@ with gr.Blocks() as demo:
203
  def bot(history):
204
  user_message = history[-1][0]
205
  #bot_message = chat_engine.chat(user_message)
206
- bot_message = query_engine.aquery(user_message + "Let's think step by step to get the correct answer. If you cannot provide an answer, say you don't know.")
207
  history[-1][1] = ""
208
  for character in bot_message.response:
209
  history[-1][1] += character
 
203
  def bot(history):
204
  user_message = history[-1][0]
205
  #bot_message = chat_engine.chat(user_message)
206
+ bot_message = asyncio.run(query_engine.aquery(user_message + "Let's think step by step to get the correct answer. If you cannot provide an answer, say you don't know."))
207
  history[-1][1] = ""
208
  for character in bot_message.response:
209
  history[-1][1] += character