givkashi commited on
Commit
8eefa03
1 Parent(s): 1ecbf8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,11 +23,11 @@ def infer(img):
23
  os.system('python main_test_swinir.py')
24
  res=Image.open("./results/data.png")
25
  #return res
26
- return "./results/data.png"
27
 
28
 
29
  inputs = [gr.inputs.Image(type='pil', label="Original Image")]
30
- outputs = [gr.outputs.Image(type="file", label="output")]
31
  title = "SwinIR: Image Restoration Using Swin Transformer,Super-Resolution part "
32
  description = "Gradio demo for SwinIR: Super-Resolution part. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
33
  article = "<p style='text-align: center'><a href='https://arxiv.org/pdf/2108.10257.pdf' target='_blank'>SwinIR: Image Restoration Using Swin Transformer</a> | <a href='https://github.com/JingyunLiang/SwinIR' target='_blank'>Github Repo</a></p>"
 
23
  os.system('python main_test_swinir.py')
24
  res=Image.open("./results/data.png")
25
  #return res
26
+ return "./results/data.png","./results/data.png"
27
 
28
 
29
  inputs = [gr.inputs.Image(type='pil', label="Original Image")]
30
+ outputs = [gr.outputs.Image(type="file", label="output"), gr.outputs.File(label="download")]
31
  title = "SwinIR: Image Restoration Using Swin Transformer,Super-Resolution part "
32
  description = "Gradio demo for SwinIR: Super-Resolution part. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
33
  article = "<p style='text-align: center'><a href='https://arxiv.org/pdf/2108.10257.pdf' target='_blank'>SwinIR: Image Restoration Using Swin Transformer</a> | <a href='https://github.com/JingyunLiang/SwinIR' target='_blank'>Github Repo</a></p>"