camparchimedes commited on
Commit
36b001e
·
verified ·
1 Parent(s): e9ac19f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -120,12 +120,13 @@ async def handle_message(message: cl.Message):
120
 
121
  if re.search(booking_pattern, user_message):
122
  booking_id = re.search(booking_pattern, user_message).group(0)
123
- headers = {"Authorization": f"Bearer {auth_token}", "Content-Type": "application/json"}
 
124
 
125
  # --------------------------------ALT 3--------------------------------
126
  response = await api_chain.acall({
127
  "booking_id": booking_id,
128
- "headers": headers #{"Authorization": f"Bearer {auth_token}"},
129
  },
130
  callbacks=[cl.AsyncLangchainCallbackHandler()])
131
  # ----------------------------------------------------------------------
 
120
 
121
  if re.search(booking_pattern, user_message):
122
  booking_id = re.search(booking_pattern, user_message).group(0)
123
+ question = {"Authorization": f"Bearer {auth_token}", "Content-Type": "application/json"}
124
+
125
 
126
  # --------------------------------ALT 3--------------------------------
127
  response = await api_chain.acall({
128
  "booking_id": booking_id,
129
+ "headers": question #{"Authorization": f"Bearer {auth_token}"},
130
  },
131
  callbacks=[cl.AsyncLangchainCallbackHandler()])
132
  # ----------------------------------------------------------------------