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