52Hz commited on
Commit
710a4db
·
verified ·
1 Parent(s): 95d13f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -8,7 +8,8 @@ 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
+ # os.system('mkdir test')
12
+ os.makedirs("./test", exist_ok=True)
13
  basewidth = 512
14
  wpercent = (basewidth / float(img.size[0]))
15
  hsize = int((float(img.size[1]) * float(wpercent)))