Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -50,6 +50,14 @@ def generate_image():
|
|
50 |
|
51 |
title = "DCGAN Image Generator ποΈπ¨"
|
52 |
description = "Generate non-existing images using DCGAN."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
iface = gr.Interface(
|
55 |
fn=generate_image,
|
@@ -57,8 +65,11 @@ iface = gr.Interface(
|
|
57 |
outputs="image",
|
58 |
title=title,
|
59 |
description=description,
|
60 |
-
|
|
|
|
|
61 |
)
|
62 |
|
|
|
63 |
iface.launch()
|
64 |
|
|
|
50 |
|
51 |
title = "DCGAN Image Generator ποΈπ¨"
|
52 |
description = "Generate non-existing images using DCGAN."
|
53 |
+
content = """
|
54 |
+
## How to Generate π¨
|
55 |
+
|
56 |
+
To generate an image, follow these steps:
|
57 |
+
|
58 |
+
1. Click \"Generate\" button to generate a image!
|
59 |
+
2. Once the image is generated, you can save it or share it to the community!
|
60 |
+
"""
|
61 |
|
62 |
iface = gr.Interface(
|
63 |
fn=generate_image,
|
|
|
65 |
outputs="image",
|
66 |
title=title,
|
67 |
description=description,
|
68 |
+
article=content,
|
69 |
+
theme="soft",
|
70 |
+
api_name="generate"
|
71 |
)
|
72 |
|
73 |
+
iface.queue()
|
74 |
iface.launch()
|
75 |
|