camparchimedes commited on
Commit
4e842f4
·
verified ·
1 Parent(s): ccc3005

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -134,12 +134,10 @@ async def handle_message(message: cl.Message):
134
  if "booking_id" in booking_data:
135
  try:
136
 
137
- response = await llm_chain.ainvoke({
138
- "question": user_message,
139
- "chat_history": ""
140
- }, callbacks=[cl.AsyncLangchainCallbackHandler()])
141
 
142
- await cl.Message(content=response["text"]).send()
143
 
144
  except Exception as e:
145
  await cl.Message(content=f"Error processing booking data: {str(e)}").send()
 
134
  if "booking_id" in booking_data:
135
  try:
136
 
137
+ combined_message = f"### Informasjon for Bestillingskode:\n\n{response}"
138
+ await cl.Message(content=combined_message).send()
 
 
139
 
140
+
141
 
142
  except Exception as e:
143
  await cl.Message(content=f"Error processing booking data: {str(e)}").send()