danielsapit commited on
Commit
a91c837
1 Parent(s): 7fd1595

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ for model_path in ['fbcnn_gray.pth','fbcnn_color.pth']:
13
  if os.path.exists(model_path):
14
  print(f'loading model from {model_path}')
15
  else:
16
- os.makedirs(os.path.dirname(model_path), exist_ok=True)
17
  url = 'https://github.com/jiaxi-jiang/FBCNN/releases/download/v1.0/{}'.format(os.path.basename(model_path))
18
  r = requests.get(url, allow_redirects=True)
19
  open(model_path, 'wb').write(r.content)
 
13
  if os.path.exists(model_path):
14
  print(f'loading model from {model_path}')
15
  else:
16
+ #os.makedirs(os.path.dirname(model_path), exist_ok=True)
17
  url = 'https://github.com/jiaxi-jiang/FBCNN/releases/download/v1.0/{}'.format(os.path.basename(model_path))
18
  r = requests.get(url, allow_redirects=True)
19
  open(model_path, 'wb').write(r.content)