修复
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Author: Egrt
|
3 |
Date: 2022-01-13 13:34:10
|
4 |
LastEditors: Egrt
|
5 |
-
LastEditTime: 2022-10-31
|
6 |
FilePath: \MaskGAN\app.py
|
7 |
'''
|
8 |
from cyclegan import CYCLEGAN
|
@@ -30,8 +30,8 @@ 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','.jpeg'))]
|
31 |
gr.Interface(
|
32 |
inference,
|
33 |
-
gr.inputs.Image(type="pil", label="Input"),
|
34 |
-
gr.outputs.Image(type="pil", label="Output"),
|
35 |
title=title,
|
36 |
description=description,
|
37 |
article=article,
|
|
|
2 |
Author: Egrt
|
3 |
Date: 2022-01-13 13:34:10
|
4 |
LastEditors: Egrt
|
5 |
+
LastEditTime: 2022-10-31 17:08:34
|
6 |
FilePath: \MaskGAN\app.py
|
7 |
'''
|
8 |
from cyclegan import CYCLEGAN
|
|
|
30 |
examples=[os.path.join(example_img_dir, image_path) for image_path in example_img_name if image_path.endswith(('.jpg','.jpeg'))]
|
31 |
gr.Interface(
|
32 |
inference,
|
33 |
+
gr.inputs.Image(type="pil", label="Input", tool="editor"),
|
34 |
+
gr.outputs.Image(type="pil", label="Output").style(height=242),
|
35 |
title=title,
|
36 |
description=description,
|
37 |
article=article,
|