Felixogunwale commited on
Commit
51fe5fc
1 Parent(s): 0ef2b30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def inference(image, task):
19
  if task == 'Deblurring':
20
  os.system("python basicsr/demo.py -opt options/test/REDS/NAFNet-width64.yml --input_path ./tmp/lq_image.png --output_path ./tmp/image.png")
21
 
22
- return 'tmp/image.png'
23
 
24
  title = "image deblurring"
25
  description = "Gradio demo for <b>Felix ogunwale image deblurring restoration project</b>. This project achieves state-of-the-art performance on three tasks: image denoising, image debluring and stereo image super-resolution (SR). We provide a demo for image denoise and deblur on hugging face for easy graphical user interface. To use it, we simply upload our image, or click one of the examples to load them. Inference needs some time since this demo uses CPU."
 
19
  if task == 'Deblurring':
20
  os.system("python basicsr/demo.py -opt options/test/REDS/NAFNet-width64.yml --input_path ./tmp/lq_image.png --output_path ./tmp/image.png")
21
 
22
+ return 'http://tmp/image.png'
23
 
24
  title = "image deblurring"
25
  description = "Gradio demo for <b>Felix ogunwale image deblurring restoration project</b>. This project achieves state-of-the-art performance on three tasks: image denoising, image debluring and stereo image super-resolution (SR). We provide a demo for image denoise and deblur on hugging face for easy graphical user interface. To use it, we simply upload our image, or click one of the examples to load them. Inference needs some time since this demo uses CPU."