danhergir commited on
Commit
ce89ca9
1 Parent(s): 6649be3
Files changed (1) hide show
  1. utils.py +1 -1
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=os.environ["access_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