Spaces:
Runtime error
Runtime error
abhilash1910
commited on
Commit
•
efdd11d
1
Parent(s):
66d9684
Add examples
Browse files
app.py
CHANGED
@@ -19,5 +19,5 @@ def infer(img):
|
|
19 |
title = "CartoonGAN"
|
20 |
description = "Gradio Demo for CartoonGAN. To use it, simply upload an image."
|
21 |
article = "<p style='text-align: center'><a href='http://openaccess.thecvf.com/content_cvpr_2018/papers/Chen_CartoonGAN_Generative_Adversarial_CVPR_2018_paper.pdf' target='_blank'>Paper</a></p> <p style='text-align: center'>samples from repo: <img src='https://imgur.com/A9pkBlR.jpg'/><img src='https://imgur.com/s3YO3PB.jpg'/><img src='https://imgur.com/qExudXP.jpg'/><img src='https://imgur.com/q8Udor8.jpg'/><img src='https://imgur.com/Y3JqL3Q.jpg'/><img src='https://imgur.com/qpY0Drt.jpg'/></p>"
|
22 |
-
examples=[['ny_street.jpg']]
|
23 |
gr.Interface(infer, gr.inputs.Image(type="pil"), gr.outputs.Image(type="pil"), title=title,description=description,article=article,enable_queue=True,examples=examples).launch(share=True)
|
|
|
19 |
title = "CartoonGAN"
|
20 |
description = "Gradio Demo for CartoonGAN. To use it, simply upload an image."
|
21 |
article = "<p style='text-align: center'><a href='http://openaccess.thecvf.com/content_cvpr_2018/papers/Chen_CartoonGAN_Generative_Adversarial_CVPR_2018_paper.pdf' target='_blank'>Paper</a></p> <p style='text-align: center'>samples from repo: <img src='https://imgur.com/A9pkBlR.jpg'/><img src='https://imgur.com/s3YO3PB.jpg'/><img src='https://imgur.com/qExudXP.jpg'/><img src='https://imgur.com/q8Udor8.jpg'/><img src='https://imgur.com/Y3JqL3Q.jpg'/><img src='https://imgur.com/qpY0Drt.jpg'/></p>"
|
22 |
+
examples=[['ny_street.jpg'],['husky_study.jpg'],['tube_london.jpg'],['monalisa.jpg'],['dog-sleepy.gif'],['japan_fuji.jpg']]
|
23 |
gr.Interface(infer, gr.inputs.Image(type="pil"), gr.outputs.Image(type="pil"), title=title,description=description,article=article,enable_queue=True,examples=examples).launch(share=True)
|