白鹭先生 commited on
Commit
62e0609
1 Parent(s): 50d0cbe
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,7 +2,7 @@
2
  Author: Egrt
3
  Date: 2022-01-13 13:34:10
4
  LastEditors: [egrt]
5
- LastEditTime: 2022-04-08 21:22:10
6
  FilePath: \LicenseGAN\app.py
7
  '''
8
  import os
@@ -27,7 +27,7 @@ description = "使用生成对抗网络对低分辨率车牌图片进行八倍
27
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2108.10257' target='_blank'>LicenseGAN: Image Restoration Using Swin Transformer</a> | <a href='https://github.com/JingyunLiang/SwinIR' target='_blank'>Github Repo</a></p>"
28
  example_img_dir = 'img'
29
  example_img_name = os.listdir(example_img_dir)
30
- examples=[[os.path.join(example_img_dir, image_path)] for image_path in example_img_name if image_path.endswith('.jpg', '.png', '.tif')]
31
  gr.Interface(
32
  inference,
33
  [gr.inputs.Image(type="pil", label="Input")],
2
  Author: Egrt
3
  Date: 2022-01-13 13:34:10
4
  LastEditors: [egrt]
5
+ LastEditTime: 2022-04-08 21:24:36
6
  FilePath: \LicenseGAN\app.py
7
  '''
8
  import os
27
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2108.10257' target='_blank'>LicenseGAN: Image Restoration Using Swin Transformer</a> | <a href='https://github.com/JingyunLiang/SwinIR' target='_blank'>Github Repo</a></p>"
28
  example_img_dir = 'img'
29
  example_img_name = os.listdir(example_img_dir)
30
+ examples=[[os.path.join(example_img_dir, image_path)] for image_path in example_img_name if image_path.endswith(('.jpg', '.png', '.tif'))]
31
  gr.Interface(
32
  inference,
33
  [gr.inputs.Image(type="pil", label="Input")],