Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -80,6 +80,8 @@ def load_model(model_name: str):
|
|
80 |
model_seq,
|
81 |
new_head
|
82 |
)
|
|
|
|
|
83 |
return model, None
|
84 |
|
85 |
else:
|
|
|
80 |
model_seq,
|
81 |
new_head
|
82 |
)
|
83 |
+
weights = torch.load('/CNN_1stGEAC_m2_best.pth')
|
84 |
+
model.load_state_dict(weights)
|
85 |
return model, None
|
86 |
|
87 |
else:
|