camparchimedes commited on
Commit
df61a55
ยท
verified ยท
1 Parent(s): 4e02251

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -191,7 +191,7 @@ async def handle_message(message: cl.Message):
191
  try:
192
  booking_data = json.loads(response)
193
 
194
- booking_data = f"""
195
  | Field | Value |
196
  |-------|--------|
197
  | Booking ID | {booking_data.get('booking_id', 'N/A')} |
@@ -204,7 +204,7 @@ async def handle_message(message: cl.Message):
204
  | Info | {booking_data.get('infotext', 'N/A')} |
205
  | Included | {booking_data.get('included', 'N/A')} |
206
  """
207
- await cl.Message(booking_data).send()
208
 
209
  except json.JSONDecodeError:
210
  await cl.Message(f"Error: Non-JSON response received. Raw response: {response}").send()
 
191
  try:
192
  booking_data = json.loads(response)
193
 
194
+ table = f"""
195
  | Field | Value |
196
  |-------|--------|
197
  | Booking ID | {booking_data.get('booking_id', 'N/A')} |
 
204
  | Info | {booking_data.get('infotext', 'N/A')} |
205
  | Included | {booking_data.get('included', 'N/A')} |
206
  """
207
+ await cl.Message(table).send()
208
 
209
  except json.JSONDecodeError:
210
  await cl.Message(f"Error: Non-JSON response received. Raw response: {response}").send()