Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,16 +14,16 @@ def image_generation(model, number_of_images=1):
|
|
14 |
#return f"generating {number_of_images} images from {model}"
|
15 |
return img
|
16 |
if __name__ == "__main__":
|
17 |
-
|
18 |
inputs = gr.inputs.Radio(["Abstract Expressionism", "Impressionism", "Cubism", "Pop Art", "Color Field", "Hana Hanak houses"])
|
19 |
outputs = gr.outputs.Image(label="Generated Image", type="pil")
|
20 |
#outputs = "text"
|
21 |
-
title = "Projected GAN for painting generation"
|
22 |
article = "<p style='text-align: center'><a href='https://github.com/autonomousvision/projected_gan'>Official projected GAN github repo + paper</a></p>"
|
23 |
|
24 |
|
25 |
|
26 |
-
gr.Interface(image_generation, inputs, outputs, title=title, article = article,
|
27 |
analytics_enabled=False).launch(debug=True)
|
28 |
|
29 |
app, local_url, share_url = iface.launch()
|
|
|
14 |
#return f"generating {number_of_images} images from {model}"
|
15 |
return img
|
16 |
if __name__ == "__main__":
|
17 |
+
description = "TODO: when generating only 1 image use an esrgan to increase its resolution \n TODO: allow generation of multiple images"
|
18 |
inputs = gr.inputs.Radio(["Abstract Expressionism", "Impressionism", "Cubism", "Pop Art", "Color Field", "Hana Hanak houses"])
|
19 |
outputs = gr.outputs.Image(label="Generated Image", type="pil")
|
20 |
#outputs = "text"
|
21 |
+
title = "Projected GAN for painting generation v0.1"
|
22 |
article = "<p style='text-align: center'><a href='https://github.com/autonomousvision/projected_gan'>Official projected GAN github repo + paper</a></p>"
|
23 |
|
24 |
|
25 |
|
26 |
+
gr.Interface(image_generation, inputs, outputs, title=title, article = article, description = description,
|
27 |
analytics_enabled=False).launch(debug=True)
|
28 |
|
29 |
app, local_url, share_url = iface.launch()
|