Spaces:
Runtime error
Runtime error
TachibanaYoshino
commited on
Commit
•
6a6310c
1
Parent(s):
07e14e1
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def inference(img_path, Style, if_face=None):
|
|
14 |
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
|
15 |
if Style == "AnimeGANv3_Arcane":
|
16 |
f = "A"
|
17 |
-
elif Style == "AnimeGANv3_Trump":
|
18 |
f = "T"
|
19 |
elif Style == "AnimeGANv3_Shinkai":
|
20 |
f = "S"
|
@@ -91,5 +91,5 @@ gr.Interface(
|
|
91 |
description=description,
|
92 |
article=article,
|
93 |
allow_flagging="never",
|
94 |
-
examples=[['samples/7_out.jpg', 'AnimeGANv3_Arcane', "Yes"], ['samples/15566.jpg', 'AnimeGANv3_USA', "Yes"],['samples/23034.jpg', 'AnimeGANv3_Trump', "Yes"], ['samples/jp_13.jpg', 'AnimeGANv3_Hayao', "No"],
|
95 |
['samples/jp_20.jpg', 'AnimeGANv3_Shinkai', "No"], ['samples/52014.jpg', 'AnimeGANv3_PortraitSketch', "Yes"]]).launch(enable_queue=True)
|
|
|
14 |
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
|
15 |
if Style == "AnimeGANv3_Arcane":
|
16 |
f = "A"
|
17 |
+
elif Style == "AnimeGANv3_Trump v1.0":
|
18 |
f = "T"
|
19 |
elif Style == "AnimeGANv3_Shinkai":
|
20 |
f = "S"
|
|
|
91 |
description=description,
|
92 |
article=article,
|
93 |
allow_flagging="never",
|
94 |
+
examples=[['samples/7_out.jpg', 'AnimeGANv3_Arcane', "Yes"], ['samples/15566.jpg', 'AnimeGANv3_USA', "Yes"],['samples/23034.jpg', 'AnimeGANv3_Trump v1.0', "Yes"], ['samples/jp_13.jpg', 'AnimeGANv3_Hayao', "No"],
|
95 |
['samples/jp_20.jpg', 'AnimeGANv3_Shinkai', "No"], ['samples/52014.jpg', 'AnimeGANv3_PortraitSketch', "Yes"]]).launch(enable_queue=True)
|