Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1018,18 +1018,17 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
|
| 1018 |
print(f"Booking enquiry for {full_name} with contact number {contact_number}.")
|
| 1019 |
return f"Booking enquiry for {full_name} with contact number {contact_number} declined!. Please try again or Contact our support team"
|
| 1020 |
|
| 1021 |
-
|
| 1022 |
-
|
| 1023 |
-
|
| 1024 |
-
|
| 1025 |
-
|
| 1026 |
-
|
| 1027 |
-
|
| 1028 |
-
|
| 1029 |
-
|
| 1030 |
-
)
|
| 1031 |
|
| 1032 |
-
|
| 1033 |
|
| 1034 |
# def get_current_weather(location: str, unit: str):
|
| 1035 |
# """
|
|
|
|
| 1018 |
print(f"Booking enquiry for {full_name} with contact number {contact_number}.")
|
| 1019 |
return f"Booking enquiry for {full_name} with contact number {contact_number} declined!. Please try again or Contact our support team"
|
| 1020 |
|
| 1021 |
+
def clear_history(command: str):
|
| 1022 |
+
"""
|
| 1023 |
+
This function allow the user to clear the history.
|
| 1024 |
+
@param command: This should be always clear history or something like that
|
| 1025 |
+
"""
|
| 1026 |
+
messages.clear()
|
| 1027 |
+
messages.append(
|
| 1028 |
+
{"role": "system", "content": system}
|
| 1029 |
+
)
|
|
|
|
| 1030 |
|
| 1031 |
+
return "History cleared successfuly!"
|
| 1032 |
|
| 1033 |
# def get_current_weather(location: str, unit: str):
|
| 1034 |
# """
|