svijayanand commited on
Commit
92443d8
·
verified ·
1 Parent(s): 71e991b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -123,10 +123,12 @@ async def on_message(message: cl.Message):
123
  | chat_model
124
  | StrOutputParser()
125
  )
126
-
127
- print(f"Answer the following Question: {cl.Message.content}")
 
128
  # Asynchronous execution (e.g., for a better a chatbot user experience)
129
- output_chunks = await runnable_chain.ainvoke(cl.Message.content)
 
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