khalednabawi11 commited on
Commit
93c5295
·
verified ·
1 Parent(s): 208b3c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -155,7 +155,7 @@ async def ask(query: Query):
155
 
156
  answer = await asyncio.wait_for(
157
  # qa_chain.run(prompt, callbacks=[timeout_callback]),
158
- loop.run_in_executor(None, qa_chain.run, query.question),
159
  timeout=360
160
  )
161
 
 
155
 
156
  answer = await asyncio.wait_for(
157
  # qa_chain.run(prompt, callbacks=[timeout_callback]),
158
+ loop.run_in_executor(None, qa_chain.run, prompt),
159
  timeout=360
160
  )
161