Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -54,20 +54,20 @@ def inference(img,task):
|
|
54 |
|
55 |
if task == 'Motion Deblurring':
|
56 |
task = 'Motion_Deblurring'
|
57 |
-
os.system("python demo_gradio.py --task 'Motion_Deblurring' --
|
58 |
|
59 |
if task == 'Defocus Deblurring':
|
60 |
task = 'Single_Image_Defocus_Deblurring'
|
61 |
-
os.system("python demo_gradio.py --task 'Single_Image_Defocus_Deblurring' --
|
62 |
|
63 |
if task == 'Denoising':
|
64 |
task = 'Real_Denoising'
|
65 |
-
os.system("python demo_gradio.py --task 'Real_Denoising' --
|
66 |
|
67 |
if task == 'Deraining':
|
68 |
-
os.system("python demo_gradio.py --task 'Deraining' --
|
69 |
|
70 |
-
return f'temp/{task}/image.
|
71 |
|
72 |
gr.Interface(
|
73 |
inference,
|
|
|
54 |
|
55 |
if task == 'Motion Deblurring':
|
56 |
task = 'Motion_Deblurring'
|
57 |
+
os.system("python demo_gradio.py --task 'Motion_Deblurring' --input_path './temp/image.jpg' --result_dir './temp/'")
|
58 |
|
59 |
if task == 'Defocus Deblurring':
|
60 |
task = 'Single_Image_Defocus_Deblurring'
|
61 |
+
os.system("python demo_gradio.py --task 'Single_Image_Defocus_Deblurring' --input_path './temp/image.jpg' --result_dir './temp/'")
|
62 |
|
63 |
if task == 'Denoising':
|
64 |
task = 'Real_Denoising'
|
65 |
+
os.system("python demo_gradio.py --task 'Real_Denoising' --input_path './temp/image.jpg' --result_dir './temp/'")
|
66 |
|
67 |
if task == 'Deraining':
|
68 |
+
os.system("python demo_gradio.py --task 'Deraining' --input_path './temp/image.jpg' --result_dir './temp/'")
|
69 |
|
70 |
+
return f'temp/{task}/image.jpg'
|
71 |
|
72 |
gr.Interface(
|
73 |
inference,
|