Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 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)
|