danicafisher commited on
Commit
cae7f6d
·
verified ·
1 Parent(s): 9af7623

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -130,7 +130,7 @@ async def main(message: cl.Message):
130
  chain = cl.user_session.get("chain")
131
 
132
  msg = cl.Message(content="")
133
- result = await chain.arun_pipeline(message.content)
134
 
135
  async for stream_resp in result["response"]:
136
  await msg.stream_token(stream_resp)
 
130
  chain = cl.user_session.get("chain")
131
 
132
  msg = cl.Message(content="")
133
+ result = await chain.invoke({"question": message.content})
134
 
135
  async for stream_resp in result["response"]:
136
  await msg.stream_token(stream_resp)