tommy24 commited on
Commit
206d88c
·
1 Parent(s): 083e61d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -10
app.py CHANGED
@@ -1020,17 +1020,16 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
1020
 
1021
 
1022
  def clear_history(command: str):
1023
- """
1024
- This function allow the user to clear the history.
1025
- @param command: This should be always clear history or something like that
1026
- """
1027
-
1028
- messages.clear()
1029
- messages.append(
1030
- {"role": "system", "content": system}
1031
- )
1032
 
1033
- return "History cleared successfuly!"
1034
 
1035
  # def get_current_weather(location: str, unit: str):
1036
  # """
 
1020
 
1021
 
1022
  def clear_history(command: str):
1023
+ """
1024
+ This function allow the user to clear the history.
1025
+ @param command: This should be always clear history or something like that
1026
+ """
1027
+ messages.clear()
1028
+ messages.append(
1029
+ {"role": "system", "content": system}
1030
+ )
 
1031
 
1032
+ return "History cleared successfuly!"
1033
 
1034
  # def get_current_weather(location: str, unit: str):
1035
  # """