Spaces:
Sleeping
Sleeping
Fixes
Browse files
utils.py
CHANGED
@@ -4,7 +4,7 @@ import os
|
|
4 |
from huggan.pytorch.lightweight_gan.lightweight_gan import LightweightGAN
|
5 |
|
6 |
def load_model(model_name='ceyda/butterfly_cropped_uniq1K_512', model_version=None):
|
7 |
-
gan = LightweightGAN.from_pretrained(model_name, version=model_version, use_auth_token=
|
8 |
gan.eval()
|
9 |
return gan
|
10 |
|
|
|
4 |
from huggan.pytorch.lightweight_gan.lightweight_gan import LightweightGAN
|
5 |
|
6 |
def load_model(model_name='ceyda/butterfly_cropped_uniq1K_512', model_version=None):
|
7 |
+
gan = LightweightGAN.from_pretrained(model_name, version=model_version, use_auth_token=False)
|
8 |
gan.eval()
|
9 |
return gan
|
10 |
|