Spaces:
Sleeping
Sleeping
Commit ·
a8c0612
1
Parent(s): f737b2e
UI change
Browse files
app.py
CHANGED
|
@@ -32,16 +32,8 @@ chat_model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-small")
|
|
| 32 |
|
| 33 |
def explain_recycling(class_label):
|
| 34 |
prompt = f"""
|
| 35 |
-
You are a waste management expert.
|
| 36 |
-
|
| 37 |
Provide recycling Instructions for {class_label}:
|
| 38 |
-
- <instruction_1>
|
| 39 |
-
- <instruction_2>
|
| 40 |
-
|
| 41 |
Provide waste reduction tips for {class_label}:
|
| 42 |
-
- <tip_1>
|
| 43 |
-
- <tip_2>
|
| 44 |
-
|
| 45 |
"""
|
| 46 |
|
| 47 |
inputs = tokenizer(prompt, return_tensors="pt").input_ids
|
|
|
|
| 32 |
|
| 33 |
def explain_recycling(class_label):
|
| 34 |
prompt = f"""
|
|
|
|
|
|
|
| 35 |
Provide recycling Instructions for {class_label}:
|
|
|
|
|
|
|
|
|
|
| 36 |
Provide waste reduction tips for {class_label}:
|
|
|
|
|
|
|
|
|
|
| 37 |
"""
|
| 38 |
|
| 39 |
inputs = tokenizer(prompt, return_tensors="pt").input_ids
|