akhaliq HF staff commited on
Commit
73bc6ed
1 Parent(s): 5043e00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = 'models/e4e_ffhq_encode.pt'
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