Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
63 |
-
{"role": "user", "content":
|
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={
|