tommy24 commited on
Commit
0c822b5
·
1 Parent(s): ba40759

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -382,6 +382,8 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
382
  Textbox2_edited = [x.strip() for x in Textbox2]
383
  Textbox2_edited = list(Textbox2_edited)
384
  Textbox2_edited.append(UserInput)
 
 
385
  messages.append({"role": "user", "content": UserInput})
386
 
387
  for i, label in enumerate(labels):
@@ -400,8 +402,8 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
400
 
401
  if max_rounded_prediction > 0.5:
402
  print("\nWays to dispose of this waste: " + max_label)
403
- # messages.append({"role": "user", "content": content + " " + max_label})
404
- messages.append({"role": "user", "content": max_label})
405
 
406
  print("IMAGE messages after appending:", messages)
407
 
 
382
  Textbox2_edited = [x.strip() for x in Textbox2]
383
  Textbox2_edited = list(Textbox2_edited)
384
  Textbox2_edited.append(UserInput)
385
+ print(UserInput)
386
+ print("appending")
387
  messages.append({"role": "user", "content": UserInput})
388
 
389
  for i, label in enumerate(labels):
 
402
 
403
  if max_rounded_prediction > 0.5:
404
  print("\nWays to dispose of this waste: " + max_label)
405
+ messages.append({"role": "user", "content": content + " " + max_label})
406
+ # messages.append({"role": "user", "content": max_label})
407
 
408
  print("IMAGE messages after appending:", messages)
409