Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -123,10 +123,12 @@ async def on_message(message: cl.Message):
|
|
123 |
| chat_model
|
124 |
| StrOutputParser()
|
125 |
)
|
126 |
-
|
127 |
-
print(
|
|
|
128 |
# Asynchronous execution (e.g., for a better a chatbot user experience)
|
129 |
-
output_chunks =
|
|
|
130 |
answer = ''.join(output_chunks)
|
131 |
print(f"answer to question is : {answer}")
|
132 |
|
|
|
123 |
| chat_model
|
124 |
| StrOutputParser()
|
125 |
)
|
126 |
+
|
127 |
+
print("Answer the following Question:")
|
128 |
+
print(message.content)
|
129 |
# Asynchronous execution (e.g., for a better a chatbot user experience)
|
130 |
+
output_chunks = runnable_chain.invoke(message.content)
|
131 |
+
# output_chunks = await runnable_chain.ainvoke(cl.Message.content)
|
132 |
answer = ''.join(output_chunks)
|
133 |
print(f"answer to question is : {answer}")
|
134 |
|