danielsapit commited on
Commit
03b810c
1 Parent(s): 397cc99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -155,11 +155,11 @@ gr.Interface(
155
  gr.inputs.Checkbox(label="Grayscale (Check this if your image is grayscale)"),
156
  gr.inputs.Slider(minimum=1, maximum=100, step=1, label="Intensity (Higher = stronger JPEG artifact removal)"),
157
  gr.inputs.Slider(minimum=10, maximum=100, step=1, default=50, label="Zoom Image "
158
- "(Use this to see the image quality up close. "
159
  "100 = original size)"),
160
- gr.inputs.Slider(minimum=0, maximum=100, step=1, label="Zoom preview horizontal shift "
161
  "(Increase to shift to the right)"),
162
- gr.inputs.Slider(minimum=0, maximum=100, step=1, label="Zoom preview vertical shift "
163
  "(Increase to shift downwards)")
164
  ],
165
  outputs = [gr.outputs.Image(label="Result"),
@@ -177,8 +177,10 @@ gr.Interface(
177
  "or click one of the examples to load them. Check out the paper and the original GitHub repo at the links below. "
178
  "JPEG artifacts are noticeable distortions of images caused by JPEG lossy compression. "
179
  "This is not a super-resolution AI but a JPEG compression artifact remover. "
180
- "Uploaded images with a length longer than 1080 pixels will be downscaled to a smaller size with a length of 1080p.",
181
- article = "<p style='text-align: center;'><a href='https://github.com/jiaxi-jiang/FBCNN'>FBCNN GitHub Repo</a><br>"
 
 
182
  "<a href='https://arxiv.org/abs/2109.14573'>Towards Flexible Blind JPEG Artifacts Removal (FBCNN, ICCV 2021)</a><br>"
183
  "<a href='https://jiaxi-jiang.github.io/'>Jiaxi Jiang, </a>"
184
  "<a href='https://cszn.github.io/'>Kai Zhang, </a>"
 
155
  gr.inputs.Checkbox(label="Grayscale (Check this if your image is grayscale)"),
156
  gr.inputs.Slider(minimum=1, maximum=100, step=1, label="Intensity (Higher = stronger JPEG artifact removal)"),
157
  gr.inputs.Slider(minimum=10, maximum=100, step=1, default=50, label="Zoom Image "
158
+ "(Use this to see a copy of the output image up close. "
159
  "100 = original size)"),
160
+ gr.inputs.Slider(minimum=0, maximum=100, step=1, label="Zoom horizontal shift "
161
  "(Increase to shift to the right)"),
162
+ gr.inputs.Slider(minimum=0, maximum=100, step=1, label="Zoom vertical shift "
163
  "(Increase to shift downwards)")
164
  ],
165
  outputs = [gr.outputs.Image(label="Result"),
 
177
  "or click one of the examples to load them. Check out the paper and the original GitHub repo at the links below. "
178
  "JPEG artifacts are noticeable distortions of images caused by JPEG lossy compression. "
179
  "This is not a super-resolution AI but a JPEG compression artifact remover. "
180
+ "Written below the examples are the limitations of the input image. ",
181
+ article = "<p style='text-align: left;'>Uploaded images with a length longer than 1080 pixels will be downscaled to a smaller size "
182
+ "with a length of 1080 pixels. Uploaded images with transparency will be incorrectly reconstructed at the output.</p>"
183
+ "<p style='text-align: center;'><a href='https://github.com/jiaxi-jiang/FBCNN'>FBCNN GitHub Repo</a><br>"
184
  "<a href='https://arxiv.org/abs/2109.14573'>Towards Flexible Blind JPEG Artifacts Removal (FBCNN, ICCV 2021)</a><br>"
185
  "<a href='https://jiaxi-jiang.github.io/'>Jiaxi Jiang, </a>"
186
  "<a href='https://cszn.github.io/'>Kai Zhang, </a>"