CorvaeOboro commited on
Commit
9f73390
β€’
1 Parent(s): 8dbca4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ from huggingface_hub import hf_hub_download
11
  #hf_hub_download(repo_id="CorvaeOboro/gen_ability_icon", filename="gen_ability_icon_stylegan2ada_20221012.pkl", repo_type="dataset")
12
 
13
  #TOKEN = os.environ['TOKEN']
14
- with open(hf_hub_download(repo_id="CorvaeOboro/gen_ability_icon", filename="gen_ability_icon_stylegan2ada_20221012.pkl", repo_type="dataset"), 'rb') as f:
15
  G = pickle.load(f)['G_ema']# torch.nn.Module
16
 
17
  device = torch.device("cpu")
 
11
  #hf_hub_download(repo_id="CorvaeOboro/gen_ability_icon", filename="gen_ability_icon_stylegan2ada_20221012.pkl", repo_type="dataset")
12
 
13
  #TOKEN = os.environ['TOKEN']
14
+ with open(hf_hub_download(repo_id="CorvaeOboro/gen_ability_icon", filename="gen_ability_icon_stylegan2ada_20221012.pkl", repo_type="model"), 'rb') as f:
15
  G = pickle.load(f)['G_ema']# torch.nn.Module
16
 
17
  device = torch.device("cpu")