白鹭先生 commited on
Commit
50d0cbe
1 Parent(s): 4324317
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,8 +1,8 @@
1
  '''
2
  Author: Egrt
3
  Date: 2022-01-13 13:34:10
4
- LastEditors: Egrt
5
- LastEditTime: 2022-01-13 13:48:57
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')]
31
  gr.Interface(
32
  inference,
33
  [gr.inputs.Image(type="pil", label="Input")],
1
  '''
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
  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")],