Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,9 @@ os.system(
|
|
| 8 |
|
| 9 |
|
| 10 |
def inference(img):
|
| 11 |
-
os.
|
|
|
|
|
|
|
| 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)))
|