Spaces:
Running
on
Zero
Running
on
Zero
Dan Bochman
commited on
Commit
•
b518069
1
Parent(s):
71556a8
return model in `load_model` function
Browse files
app.py
CHANGED
@@ -107,6 +107,7 @@ def load_model(checkpoint_name: str):
|
|
107 |
model = torch.jit.load(checkpoint_path)
|
108 |
model.eval()
|
109 |
model.to("cuda")
|
|
|
110 |
|
111 |
|
112 |
MODELS = {name: load_model(name) for name in CHECKPOINTS.keys()}
|
|
|
107 |
model = torch.jit.load(checkpoint_path)
|
108 |
model.eval()
|
109 |
model.to("cuda")
|
110 |
+
return model
|
111 |
|
112 |
|
113 |
MODELS = {name: load_model(name) for name in CHECKPOINTS.keys()}
|