Add more images
Browse files- app.py +2 -6
- assets/image01.jpg +0 -0
- assets/image02.jpg +0 -0
- assets/image03.jpg +0 -0
- assets/image04.jpg +0 -0
- mona.png +0 -0
app.py
CHANGED
|
@@ -195,10 +195,6 @@ def inference(img, model):
|
|
| 195 |
imageio.imwrite('filename.jpeg', npimage)
|
| 196 |
return 'filename.jpeg'
|
| 197 |
|
| 198 |
-
title = "JoJoGAN"
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2112.11641' target='_blank'>JoJoGAN: One Shot Face Stylization</a>| <a href='https://github.com/mchong6/JoJoGAN' target='_blank'>Github Repo Pytorch</a></p> <center><img src='https://visitor-badge.glitch.me/badge?page_id=akhaliq_jojogan' alt='visitor badge'></center>"
|
| 202 |
-
|
| 203 |
-
examples=[['mona.png','Jinx']]
|
| 204 |
gr.Interface(inference, [gr.inputs.Image(type="pil"),gr.inputs.Dropdown(choices=['JoJo', 'Disney','Jinx','Caitlyn','Yasuho','Arcane Multi','Art','Spider-Verse','Sketch'], type="value", default='JoJo', label="Model")], gr.outputs.Image(type="file"),title=title,description=description,article=article,allow_flagging=False,examples=examples,allow_screenshot=False).launch()
|
|
|
|
| 195 |
imageio.imwrite('filename.jpeg', npimage)
|
| 196 |
return 'filename.jpeg'
|
| 197 |
|
| 198 |
+
title = "JoJoGAN Test 🤖"
|
| 199 |
+
examples=[['assets/image01.jpg','JoJo'],['assets/image02.jpg','Disney'],['assets/image03.jpg','Jinx'],['assets/image04.jpg','Sketch']]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 200 |
gr.Interface(inference, [gr.inputs.Image(type="pil"),gr.inputs.Dropdown(choices=['JoJo', 'Disney','Jinx','Caitlyn','Yasuho','Arcane Multi','Art','Spider-Verse','Sketch'], type="value", default='JoJo', label="Model")], gr.outputs.Image(type="file"),title=title,description=description,article=article,allow_flagging=False,examples=examples,allow_screenshot=False).launch()
|
assets/image01.jpg
ADDED
|
assets/image02.jpg
ADDED
|
assets/image03.jpg
ADDED
|
assets/image04.jpg
ADDED
|
mona.png
DELETED
|
Binary file (564 kB)
|
|
|