Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def inference(img,task):
|
|
54 |
img = img.resize((width,height), Image.ANTIALIAS)
|
55 |
|
56 |
img.save("temp/image.jpg", "JPEG")
|
57 |
-
|
58 |
if task == 'Motion Deblurring':
|
59 |
task = 'Motion_Deblurring'
|
60 |
os.system("python demo.py --task 'Motion_Deblurring' --input_dir './temp/image.jpg' --result_dir './temp/'")
|
@@ -72,6 +72,8 @@ def inference(img,task):
|
|
72 |
|
73 |
|
74 |
restored = f'temp/{task}/image.png'
|
|
|
|
|
75 |
return restored
|
76 |
|
77 |
gr.Interface(
|
|
|
54 |
img = img.resize((width,height), Image.ANTIALIAS)
|
55 |
|
56 |
img.save("temp/image.jpg", "JPEG")
|
57 |
+
"""
|
58 |
if task == 'Motion Deblurring':
|
59 |
task = 'Motion_Deblurring'
|
60 |
os.system("python demo.py --task 'Motion_Deblurring' --input_dir './temp/image.jpg' --result_dir './temp/'")
|
|
|
72 |
|
73 |
|
74 |
restored = f'temp/{task}/image.png'
|
75 |
+
"""
|
76 |
+
restored = 'temp/image.jpg'
|
77 |
return restored
|
78 |
|
79 |
gr.Interface(
|