Spaces:
Runtime error
Runtime error
SerdarHelli
commited on
Commit
•
4b085f9
1
Parent(s):
cb1e3ee
Update app.py
Browse files
app.py
CHANGED
@@ -30,9 +30,7 @@ def layout_grid(img, grid_w=None, grid_h=1, float_to_uint8=True, chw_to_hwc=True
|
|
30 |
sys.path.insert(0, 'Brain-MR-Image-Generation-GAN ')
|
31 |
|
32 |
|
33 |
-
|
34 |
-
|
35 |
-
network_pkl=hf_hub_download('SerdarHelli/BrainMRIGAN',f'models/braingan-400.pkl',use_auth_token=TOKEN)
|
36 |
with open(network_pkl, 'rb') as f:
|
37 |
G = pickle.load(f)['G_ema']
|
38 |
|
|
|
30 |
sys.path.insert(0, 'Brain-MR-Image-Generation-GAN ')
|
31 |
|
32 |
|
33 |
+
network_pkl=hf_hub_download('SerdarHelli/BrainMRIGAN',f'models/braingan-400.pkl')
|
|
|
|
|
34 |
with open(network_pkl, 'rb') as f:
|
35 |
G = pickle.load(f)['G_ema']
|
36 |
|