SerdarHelli commited on
Commit
190367b
·
1 Parent(s): 6d79ee4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,10 +27,10 @@ DESCRIPTION = f'''This model generates healthy MR Brain Images.
27
 
28
  [Example]("https://huggingface.co/spaces/SerdarHelli/Brain-MR-Image-Generation-GAN/blob/main/ex.png")
29
  '''
30
- hf_hub_download("SerdarHelli/Brain-MRI-GAN", filename="brainmrigan.pkl",cache_dir="")
31
 
32
 
33
- network_pkl='brainmrigan.pkl'
34
  with open(network_pkl, 'rb') as f:
35
  G = pickle.load(f)['G_ema']
36
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
 
27
 
28
  [Example]("https://huggingface.co/spaces/SerdarHelli/Brain-MR-Image-Generation-GAN/blob/main/ex.png")
29
  '''
30
+ hf_hub_download("SerdarHelli/Brain-MRI-GAN", filename="brainmrigan.pkl",cache_dir="./model")
31
 
32
 
33
+ network_pkl='./model/brainmrigan.pkl'
34
  with open(network_pkl, 'rb') as f:
35
  G = pickle.load(f)['G_ema']
36
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")