Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ os.system("gdown https://drive.google.com/uc?id=1jtCg8HQ6RlTmLdnbT2PfW1FJ2AYkWqs
|
|
41 |
os.system("cp e4e_ffhq_encode.pt models/e4e_ffhq_encode.pt")
|
42 |
|
43 |
device= 'cpu'
|
44 |
-
model_path =
|
45 |
ckpt = torch.load(model_path, map_location='cpu')
|
46 |
opts = ckpt['opts']
|
47 |
opts['checkpoint_path'] = model_path
|
|
|
41 |
os.system("cp e4e_ffhq_encode.pt models/e4e_ffhq_encode.pt")
|
42 |
|
43 |
device= 'cpu'
|
44 |
+
model_path = hf_hub_download(repo_id="akhaliq/JoJoGAN_e4e_ffhq_encode", filename="e4e_ffhq_encode.pt")
|
45 |
ckpt = torch.load(model_path, map_location='cpu')
|
46 |
opts = ckpt['opts']
|
47 |
opts['checkpoint_path'] = model_path
|