Spaces:
Sleeping
Sleeping
Commit ·
75d35ec
1
Parent(s): fc7517c
prompt model change
Browse files
app.py
CHANGED
|
@@ -40,7 +40,7 @@ chat_model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-base")
|
|
| 40 |
|
| 41 |
def explain_recycling(class_label):
|
| 42 |
prompt = f"""
|
| 43 |
-
Give short recycling
|
| 44 |
inputs = tokenizer(prompt, return_tensors="pt").input_ids
|
| 45 |
|
| 46 |
outputs = chat_model.generate(
|
|
|
|
| 40 |
|
| 41 |
def explain_recycling(class_label):
|
| 42 |
prompt = f"""
|
| 43 |
+
Give short recycling instructions for the item {class_label}."""
|
| 44 |
inputs = tokenizer(prompt, return_tensors="pt").input_ids
|
| 45 |
|
| 46 |
outputs = chat_model.generate(
|