Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1061,31 +1061,31 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
|
1061 |
"properties": {
|
1062 |
"name": {
|
1063 |
"type": "string",
|
1064 |
-
"description": "The name
|
1065 |
},
|
1066 |
"contact_number": {
|
1067 |
"type": "string",
|
1068 |
-
"description": "The contact number
|
1069 |
},
|
1070 |
"street_address": {
|
1071 |
"type": "string",
|
1072 |
-
"description": "The street address
|
1073 |
},
|
1074 |
"landmark": {
|
1075 |
"type": "string",
|
1076 |
-
"description": "The landmark
|
1077 |
},
|
1078 |
"zip_code": {
|
1079 |
"type": "string",
|
1080 |
-
"description": "The zipcode
|
1081 |
},
|
1082 |
"emirate": {
|
1083 |
"type": "string",
|
1084 |
-
"description": "The emirate
|
1085 |
},
|
1086 |
"reason": {
|
1087 |
"type": "string",
|
1088 |
-
"description": "The reason for the
|
1089 |
},
|
1090 |
},
|
1091 |
"required": ["name", "contact_number", "street_address", "landmark", "zip_code", "emirate", "reason"],
|
@@ -1157,7 +1157,6 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
|
1157 |
if comp.get("function_call"):
|
1158 |
function_name = comp["function_call"]["name"]
|
1159 |
|
1160 |
-
# Convert JSON string to Python dictionary
|
1161 |
arguments_str = comp["function_call"]["arguments"]
|
1162 |
arguments_dict = json.loads(arguments_str)
|
1163 |
|
|
|
1061 |
"properties": {
|
1062 |
"name": {
|
1063 |
"type": "string",
|
1064 |
+
"description": "The user's name provided by him/her, e.g. Alex, Sarah",
|
1065 |
},
|
1066 |
"contact_number": {
|
1067 |
"type": "string",
|
1068 |
+
"description": "The user's contact number provided by him/her, e.g. 1234567890",
|
1069 |
},
|
1070 |
"street_address": {
|
1071 |
"type": "string",
|
1072 |
+
"description": "The user's street address provided by him/her, e.g. Omando Street 123",
|
1073 |
},
|
1074 |
"landmark": {
|
1075 |
"type": "string",
|
1076 |
+
"description": "The user's landmark provided by him/her near his location, e.g. Near 123 Hotel",
|
1077 |
},
|
1078 |
"zip_code": {
|
1079 |
"type": "string",
|
1080 |
+
"description": "The user's zipcode provided by him/her based on the location, e.g. 367774, 0000",
|
1081 |
},
|
1082 |
"emirate": {
|
1083 |
"type": "string",
|
1084 |
+
"description": "The user's emirate provided by him/her, e.g. Sharjah, Abudhabi",
|
1085 |
},
|
1086 |
"reason": {
|
1087 |
"type": "string",
|
1088 |
+
"description": "The user's reason provided by him/her for the booking enquiry",
|
1089 |
},
|
1090 |
},
|
1091 |
"required": ["name", "contact_number", "street_address", "landmark", "zip_code", "emirate", "reason"],
|
|
|
1157 |
if comp.get("function_call"):
|
1158 |
function_name = comp["function_call"]["name"]
|
1159 |
|
|
|
1160 |
arguments_str = comp["function_call"]["arguments"]
|
1161 |
arguments_dict = json.loads(arguments_str)
|
1162 |
|