Commit ·
a5f47cb
1
Parent(s): 43d2801
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,21 +25,11 @@ def enhance(image):
|
|
| 25 |
|
| 26 |
return Image.fromarray(output)
|
| 27 |
|
| 28 |
-
title = "
|
| 29 |
-
description = '''
|
| 30 |
-
**This demo expects low-quality and low-resolution JPEG compressed images.**
|
| 31 |
-
**Demo notebook can be found [here](https://github.com/NielsRogge/Transformers-Tutorials/blob/master/Swin2SR/Perform_image_super_resolution_with_Swin2SR.ipynb).
|
| 32 |
-
'''
|
| 33 |
-
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2209.11345' target='_blank'>Swin2SR: SwinV2 Transformer for Compressed Image Super-Resolution and Restoration</a> | <a href='https://huggingface.co/docs/transformers/main/model_doc/swin2sr' target='_blank'>HuggingFace docs</a></p>"
|
| 34 |
-
|
| 35 |
-
examples = [['00003.jpg'], ['0855.jpg'], ['ali_eye.jpg'], ['butterfly.jpg'], ['chain-eye.jpg'], ['gojou-eyes.jpg'], ['shanghai.jpg'], ['vagabond.jpg']]
|
| 36 |
|
| 37 |
gr.Interface(
|
| 38 |
enhance,
|
| 39 |
gr.inputs.Image(type="pil", label="Input").style(height=260),
|
| 40 |
gr.inputs.Image(type="pil", label="Ouput").style(height=240),
|
| 41 |
title=title,
|
| 42 |
-
description=description,
|
| 43 |
-
article=article,
|
| 44 |
-
examples=examples,
|
| 45 |
).launch(enable_queue=True, share= True)
|
|
|
|
| 25 |
|
| 26 |
return Image.fromarray(output)
|
| 27 |
|
| 28 |
+
title = "Mojo Solo Image Super-Resolution"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
gr.Interface(
|
| 31 |
enhance,
|
| 32 |
gr.inputs.Image(type="pil", label="Input").style(height=260),
|
| 33 |
gr.inputs.Image(type="pil", label="Ouput").style(height=240),
|
| 34 |
title=title,
|
|
|
|
|
|
|
|
|
|
| 35 |
).launch(enable_queue=True, share= True)
|