Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ def load_model(model_name):
|
|
92 |
print(f"Loading {model_size} model: {model_name}")
|
93 |
|
94 |
model_path = os.path.join(MODELS_DIR, model_name)
|
95 |
-
global_model = build_model(model_size
|
96 |
|
97 |
try:
|
98 |
state_dict = torch.load(model_path, map_location=device, weights_only=True)
|
|
|
92 |
print(f"Loading {model_size} model: {model_name}")
|
93 |
|
94 |
model_path = os.path.join(MODELS_DIR, model_name)
|
95 |
+
global_model = build_model(model_size).to(device)
|
96 |
|
97 |
try:
|
98 |
state_dict = torch.load(model_path, map_location=device, weights_only=True)
|