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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -6,9 +6,12 @@ import pickle
6
  import types
7
 
8
  from huggingface_hub import hf_hub_url, cached_download
 
 
 
9
 
10
  #TOKEN = os.environ['TOKEN']
11
- with open(cached_download(hf_hub_url('CorvaeOboro/gen_ability_icon', 'gen_ability_icon_stylegan2ada_20221012.pkl')), 'rb') as f:
12
  G = pickle.load(f)['G_ema']# torch.nn.Module
13
 
14
  device = torch.device("cpu")
 
6
  import types
7
 
8
  from huggingface_hub import hf_hub_url, cached_download
9
+ from huggingface_hub import hf_hub_download
10
+
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")