Spaces:
Runtime error
Runtime error
CorvaeOboro
commited on
Commit
β’
b5bbbf0
1
Parent(s):
e8f045f
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from huggingface_hub import hf_hub_url, cached_download
|
|
10 |
#TOKEN = os.environ['TOKEN']
|
11 |
|
12 |
with open(cached_download(hf_hub_url('CorvaeOboro/gen_ability_icon', 'gen_ability_icon_stylegan2ada_20220801.pkl')), 'rb') as f:
|
13 |
-
G = pickle.load(f)['
|
14 |
|
15 |
device = torch.device("cpu")
|
16 |
if torch.cuda.is_available():
|
|
|
10 |
#TOKEN = os.environ['TOKEN']
|
11 |
|
12 |
with open(cached_download(hf_hub_url('CorvaeOboro/gen_ability_icon', 'gen_ability_icon_stylegan2ada_20220801.pkl')), 'rb') as f:
|
13 |
+
G = pickle.load(f)['f']# torch.nn.Module
|
14 |
|
15 |
device = torch.device("cpu")
|
16 |
if torch.cuda.is_available():
|