johnowhitaker commited on
Commit
603b967
1 Parent(s): 197f5c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,12 +1,12 @@
1
  import gradio as gr
2
  from fastai.vision.all import *
3
- from os.path import file_exists
4
  import requests
5
 
6
  model_fn = 'quick_224px'
7
  url = 'https://huggingface.co/johnowhitaker/sketchy_unet_rn34/resolve/main/quick_224px'
8
 
9
- if not file_exists(model_fn):
10
  print('starting download')
11
  with requests.get(url, stream=True) as r:
12
  r.raise_for_status()
 
1
  import gradio as gr
2
  from fastai.vision.all import *
3
+ from os.path import exists
4
  import requests
5
 
6
  model_fn = 'quick_224px'
7
  url = 'https://huggingface.co/johnowhitaker/sketchy_unet_rn34/resolve/main/quick_224px'
8
 
9
+ if not exists(model_fn):
10
  print('starting download')
11
  with requests.get(url, stream=True) as r:
12
  r.raise_for_status()