Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1001,7 +1001,7 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
|
1001 |
return "You must provide your details to book an enquiry."
|
1002 |
else:
|
1003 |
enquiry = requests.post(endpoint, json={
|
1004 |
-
|
1005 |
"full_name": full_name,
|
1006 |
"contact_number": contact_number,
|
1007 |
"street_address": street_address,
|
@@ -1009,7 +1009,6 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
|
1009 |
"zip_code": zip_code,
|
1010 |
"emirate": emirate,
|
1011 |
"reason_for_visit": reason,
|
1012 |
-
},
|
1013 |
})
|
1014 |
|
1015 |
if enquiry.status_code == 200:
|
|
|
1001 |
return "You must provide your details to book an enquiry."
|
1002 |
else:
|
1003 |
enquiry = requests.post(endpoint, json={
|
1004 |
+
"mode": "WhatsApp",
|
1005 |
"full_name": full_name,
|
1006 |
"contact_number": contact_number,
|
1007 |
"street_address": street_address,
|
|
|
1009 |
"zip_code": zip_code,
|
1010 |
"emirate": emirate,
|
1011 |
"reason_for_visit": reason,
|
|
|
1012 |
})
|
1013 |
|
1014 |
if enquiry.status_code == 200:
|