thak123 commited on
Commit
846b6b6
1 Parent(s): 1e55b12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.vision_text_model.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")
 
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")