Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ model.to(device)
|
|
42 |
|
43 |
# Download the state dict from HF Hub
|
44 |
repo_id = "Abdu07/multitask-model"
|
45 |
-
filename = "
|
46 |
model_path = hf_hub_download(repo_id=repo_id, filename=filename)
|
47 |
state_dict = torch.load(model_path, map_location="cpu")
|
48 |
model.load_state_dict(state_dict)
|
|
|
42 |
|
43 |
# Download the state dict from HF Hub
|
44 |
repo_id = "Abdu07/multitask-model"
|
45 |
+
filename = "best_model_new.pt" # Make sure this is the state dict file
|
46 |
model_path = hf_hub_download(repo_id=repo_id, filename=filename)
|
47 |
state_dict = torch.load(model_path, map_location="cpu")
|
48 |
model.load_state_dict(state_dict)
|