Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,7 @@ label2id = {"negative": 0, "neutral": 1, "positive": 2}
|
|
85 |
tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/twitter-xlm-roberta-base-sentiment-multilingual")
|
86 |
|
87 |
model = VisionTextDualEncoderModel(num_classes=3)
|
88 |
-
config = model.
|
89 |
|
90 |
# https://huggingface.co/FFZG-cleopatra/M2SA/blob/main/model.safetensors
|
91 |
sf_filename = hf_hub_download("FFZG-cleopatra/M2SA", filename="model.safetensors")
|
|
|
85 |
tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/twitter-xlm-roberta-base-sentiment-multilingual")
|
86 |
|
87 |
model = VisionTextDualEncoderModel(num_classes=3)
|
88 |
+
config = model.vision_encoder.config
|
89 |
|
90 |
# https://huggingface.co/FFZG-cleopatra/M2SA/blob/main/model.safetensors
|
91 |
sf_filename = hf_hub_download("FFZG-cleopatra/M2SA", filename="model.safetensors")
|