Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from transformers import pipeline, BartTokenizer, BartForConditionalGeneration
|
|
| 5 |
classifier = pipeline("image-classification", model="google/vit-base-patch16-224")
|
| 6 |
|
| 7 |
# Initialize the tokenizer and model for the generative text (GPT-like model)
|
| 8 |
-
model_name = "
|
| 9 |
tokenizer = BartTokenizer.from_pretrained(model_name)
|
| 10 |
model = BartForConditionalGeneration.from_pretrained(model_name)
|
| 11 |
|
|
|
|
| 5 |
classifier = pipeline("image-classification", model="google/vit-base-patch16-224")
|
| 6 |
|
| 7 |
# Initialize the tokenizer and model for the generative text (GPT-like model)
|
| 8 |
+
model_name = "textattack/facebook-bart-base-RTE" # Example BART model for demonstration
|
| 9 |
tokenizer = BartTokenizer.from_pretrained(model_name)
|
| 10 |
model = BartForConditionalGeneration.from_pretrained(model_name)
|
| 11 |
|