tommy24 commited on
Commit
5369911
·
1 Parent(s): 4d4da2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -59,8 +59,8 @@ def classify(image_path):
59
  time.sleep(1)
60
  print("\nWays to dispose of this waste: " + max_label)
61
  payload = [
62
- state,
63
- {"role": "user", "content": content + max_label}
64
  ]
65
 
66
  response = requests.post(host, json={
 
59
  time.sleep(1)
60
  print("\nWays to dispose of this waste: " + max_label)
61
  payload = [
62
+ {"role": "system", "content": "You are a helpful assistant."},
63
+ {"role": "user", "content": "Give me the steps to dispose of this waste in bullet points (5 max): " + max_label}
64
  ]
65
 
66
  response = requests.post(host, json={