Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -6,9 +6,6 @@ def inference(image, task):
|
|
6 |
os.system('mkdir tmp')
|
7 |
image.save("tmp/lq_image.png", "PNG")
|
8 |
|
9 |
-
if not os.path.exists('results'):
|
10 |
-
os.system('mkdir results')
|
11 |
-
|
12 |
if task == 'Dehazing':
|
13 |
os.system("python Dehazing.py --test_path ./tmp/lq_image.png --save_path ./results/ --pk_path model_zoo/Haze4k.tjm")
|
14 |
|
|
|
6 |
os.system('mkdir tmp')
|
7 |
image.save("tmp/lq_image.png", "PNG")
|
8 |
|
|
|
|
|
|
|
9 |
if task == 'Dehazing':
|
10 |
os.system("python Dehazing.py --test_path ./tmp/lq_image.png --save_path ./results/ --pk_path model_zoo/Haze4k.tjm")
|
11 |
|