Spaces:
Runtime error
Runtime error
CorvaeOboro
commited on
Commit
β’
9f73390
1
Parent(s):
8dbca4c
Update app.py
Browse files
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="
|
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")
|