Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ def load_model(path:str, file_name: str, device: torch.device) -> nn.Module:
|
|
64 |
f'{file_name}',
|
65 |
use_auth_token=TOKEN)
|
66 |
with open(path, 'rb') as f:
|
67 |
-
model =
|
68 |
model.eval()
|
69 |
model.to(device)
|
70 |
with torch.inference_mode():
|
|
|
64 |
f'{file_name}',
|
65 |
use_auth_token=TOKEN)
|
66 |
with open(path, 'rb') as f:
|
67 |
+
model = torch.load(f)['G_ema']
|
68 |
model.eval()
|
69 |
model.to(device)
|
70 |
with torch.inference_mode():
|