camparchimedes commited on
Commit
8cb9420
·
verified ·
1 Parent(s): c3e7c77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -154,20 +154,20 @@ async def handle_message(message: cl.Message):
154
 
155
 
156
  if match:
157
- bestillingskode = match.group()
158
- endpoint_url = "https://aivisions.no/data/daysoff/api/v1/booking/"
159
-
160
- post_data = {
161
- "url": endpoint_url,
162
- "body": {
163
- "booking_id": bestillingskode
 
164
  }
165
- }
166
-
167
- response = await post_tool.ainvoke(
168
- post_data,
169
- [cl.AsyncLangchainCallbackHandler()]
170
- )
171
 
172
  if response:
173
  try:
 
154
 
155
 
156
  if match:
157
+ bestillingskode = match.group()
158
+ endpoint_url = "https://aivisions.no/data/daysoff/api/v1/booking/"
159
+
160
+ post_data = {
161
+ "url": endpoint_url,
162
+ "body": {
163
+ "booking_id": bestillingskode
164
+ }
165
  }
166
+
167
+ response = await post_tool.ainvoke(
168
+ post_data,
169
+ [cl.AsyncLangchainCallbackHandler()]
170
+ )
 
171
 
172
  if response:
173
  try: