tommy24 commited on
Commit
8074918
·
1 Parent(s): e300076

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -520,6 +520,10 @@ messages = [
520
  def classify(platform, UserInput, Images, Textbox2, Textbox3):
521
  if UserInput.lower() == "clear history":
522
  messages.clear()
 
 
 
 
523
  if Textbox3 == code:
524
  imageData = None
525
  if Images != "None":
 
520
  def classify(platform, UserInput, Images, Textbox2, Textbox3):
521
  if UserInput.lower() == "clear history":
522
  messages.clear()
523
+ messages.append(
524
+ {"role": "system", "content": system}
525
+ )
526
+
527
  if Textbox3 == code:
528
  imageData = None
529
  if Images != "None":