52Hz commited on
Commit
ae3df03
1 Parent(s): dc61a85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -8,7 +8,9 @@ os.system(
8
 
9
 
10
  def inference(img):
11
- os.system('mkdir test')
 
 
12
  basewidth = 512
13
  wpercent = (basewidth / float(img.size[0]))
14
  hsize = int((float(img.size[1]) * float(wpercent)))
 
8
 
9
 
10
  def inference(img):
11
+ if not os.path.exists('test'):
12
+ os.system('mkdir test')
13
+
14
  basewidth = 512
15
  wpercent = (basewidth / float(img.size[0]))
16
  hsize = int((float(img.size[1]) * float(wpercent)))