Spaces:
Sleeping
Sleeping
Commit ·
6074907
1
Parent(s): 56e1436
UI change
Browse files
app.py
CHANGED
|
@@ -27,8 +27,8 @@ def classify_image(image):
|
|
| 27 |
|
| 28 |
|
| 29 |
# ------------------ LOAD FLAN-T5 ------------------
|
| 30 |
-
tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-
|
| 31 |
-
chat_model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-
|
| 32 |
|
| 33 |
def explain_recycling(class_label):
|
| 34 |
prompt = f"""
|
|
|
|
| 27 |
|
| 28 |
|
| 29 |
# ------------------ LOAD FLAN-T5 ------------------
|
| 30 |
+
tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-small")
|
| 31 |
+
chat_model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-small")
|
| 32 |
|
| 33 |
def explain_recycling(class_label):
|
| 34 |
prompt = f"""
|