Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1031,7 +1031,7 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
|
| 1031 |
return "Chat History cleared successfuly!"
|
| 1032 |
|
| 1033 |
|
| 1034 |
-
def
|
| 1035 |
"""
|
| 1036 |
This function allow the user to view their total points they got by Waste Diposal
|
| 1037 |
@param name: This should the registered name of the user
|
|
@@ -1159,7 +1159,7 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
|
| 1159 |
},
|
| 1160 |
|
| 1161 |
{
|
| 1162 |
-
"name": "
|
| 1163 |
"description": "This function allow the user to view their total points they got by Waste Diposal",
|
| 1164 |
"parameters": {
|
| 1165 |
"type": "object",
|
|
@@ -1251,8 +1251,8 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
|
| 1251 |
)
|
| 1252 |
reply = [{"Mode": "Chat", "content": function_response}]
|
| 1253 |
return reply
|
| 1254 |
-
elif function_name == "
|
| 1255 |
-
function_response =
|
| 1256 |
name=arguments_dict["name"],
|
| 1257 |
email=arguments_dict["email"],
|
| 1258 |
)
|
|
|
|
| 1031 |
return "Chat History cleared successfuly!"
|
| 1032 |
|
| 1033 |
|
| 1034 |
+
def get_total_points(name: str, email: str):
|
| 1035 |
"""
|
| 1036 |
This function allow the user to view their total points they got by Waste Diposal
|
| 1037 |
@param name: This should the registered name of the user
|
|
|
|
| 1159 |
},
|
| 1160 |
|
| 1161 |
{
|
| 1162 |
+
"name": "get_total_points",
|
| 1163 |
"description": "This function allow the user to view their total points they got by Waste Diposal",
|
| 1164 |
"parameters": {
|
| 1165 |
"type": "object",
|
|
|
|
| 1251 |
)
|
| 1252 |
reply = [{"Mode": "Chat", "content": function_response}]
|
| 1253 |
return reply
|
| 1254 |
+
elif function_name == "get_total_points":
|
| 1255 |
+
function_response = get_total_points(
|
| 1256 |
name=arguments_dict["name"],
|
| 1257 |
email=arguments_dict["email"],
|
| 1258 |
)
|