Spaces:
Sleeping
Sleeping
Commit ·
ac1e923
1
Parent(s): 16eda98
prompt model change
Browse files
app.py
CHANGED
|
@@ -64,13 +64,9 @@ def explain_recycling(class_label):
|
|
| 64 |
• Recycling type: Trash (non-recyclable)\n
|
| 65 |
• Disposal: Put in general landfill waste bin\n
|
| 66 |
|
| 67 |
-
Now answer in the exact same 2-bullet format
|
| 68 |
- ALWAYS include "\n" at the end of every bullet.
|
| 69 |
-
|
| 70 |
-
- DO NOT merge lines.
|
| 71 |
-
- Keep it short.
|
| 72 |
-
|
| 73 |
-
Item: {class_label}
|
| 74 |
"""
|
| 75 |
|
| 76 |
inputs = tokenizer(prompt, return_tensors="pt").input_ids
|
|
|
|
| 64 |
• Recycling type: Trash (non-recyclable)\n
|
| 65 |
• Disposal: Put in general landfill waste bin\n
|
| 66 |
|
| 67 |
+
Now answer in the exact same 2-bullet format:
|
| 68 |
- ALWAYS include "\n" at the end of every bullet.
|
| 69 |
+
Item: {class_label}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
"""
|
| 71 |
|
| 72 |
inputs = tokenizer(prompt, return_tensors="pt").input_ids
|