tommy24 commited on
Commit
f0c888a
·
verified ·
1 Parent(s): 14d3931

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -741,9 +741,12 @@ messages = [
741
  {"role": "system", "content": system}
742
  ]
743
 
744
- # messages.clear()
745
 
746
  def classify(platform, UserInput, Images, Textbox2, Textbox3):
 
 
 
747
  if UserInput == "clear history":
748
  messages.clear()
749
  messages.append(
 
741
  {"role": "system", "content": system}
742
  ]
743
 
744
+ messages.clear()
745
 
746
  def classify(platform, UserInput, Images, Textbox2, Textbox3):
747
+ messages.append(
748
+ {"role": "system", "content": system}
749
+ )
750
  if UserInput == "clear history":
751
  messages.clear()
752
  messages.append(