Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ with open(config_path, "r") as f:
|
|
23 |
cfg = OmegaConf.create(config_dict)
|
24 |
|
25 |
generator = Generator(cfg)
|
26 |
-
generator.load_state_dict(torch.load(generator_path))
|
27 |
generator.eval()
|
28 |
|
29 |
from PIL import Image
|
|
|
23 |
cfg = OmegaConf.create(config_dict)
|
24 |
|
25 |
generator = Generator(cfg)
|
26 |
+
generator.load_state_dict(torch.load(generator_path, map_location=torch.device('cpu')))
|
27 |
generator.eval()
|
28 |
|
29 |
from PIL import Image
|