Spaces:
Sleeping
Sleeping
Commit ·
8fe984f
1
Parent(s): f9a1760
prompt model change
Browse files
app.py
CHANGED
|
@@ -42,8 +42,8 @@ def explain_recycling(class_label):
|
|
| 42 |
prompt = f"""
|
| 43 |
Give recycling instructions for item {class_label}.
|
| 44 |
You should answer in this format:
|
| 45 |
-
• Recycling type: <
|
| 46 |
-
• Disposal: <
|
| 47 |
"""
|
| 48 |
|
| 49 |
inputs = tokenizer(prompt, return_tensors="pt").input_ids
|
|
|
|
| 42 |
prompt = f"""
|
| 43 |
Give recycling instructions for item {class_label}.
|
| 44 |
You should answer in this format:
|
| 45 |
+
• Recycling type: <trash type> \n
|
| 46 |
+
• Disposal: <At least 2 sentences, creative to dispose of the item>\n
|
| 47 |
"""
|
| 48 |
|
| 49 |
inputs = tokenizer(prompt, return_tensors="pt").input_ids
|