Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -90,7 +90,8 @@ config = model.vision_encoder.config
|
|
90 |
# https://huggingface.co/FFZG-cleopatra/M2SA/blob/main/model.safetensors
|
91 |
sf_filename = hf_hub_download("FFZG-cleopatra/M2SA", filename="model.safetensors")
|
92 |
|
93 |
-
load_model(model,
|
|
|
94 |
|
95 |
|
96 |
model = AutoModelForSequenceClassification.from_pretrained(
|
|
|
90 |
# https://huggingface.co/FFZG-cleopatra/M2SA/blob/main/model.safetensors
|
91 |
sf_filename = hf_hub_download("FFZG-cleopatra/M2SA", filename="model.safetensors")
|
92 |
|
93 |
+
load_model(model, sf_filename)
|
94 |
+
# model.load_state_dict(torch.load(model_args.model_name_or_path+"-finetuned/pytorch_model.bin"))
|
95 |
|
96 |
|
97 |
model = AutoModelForSequenceClassification.from_pretrained(
|