Update app.py
Browse files
app.py
CHANGED
|
@@ -172,13 +172,13 @@ def generate_new_image():
|
|
| 172 |
interface = gr.Interface(
|
| 173 |
fn=train_snn,
|
| 174 |
inputs=[
|
| 175 |
-
gr.
|
| 176 |
-
gr.
|
| 177 |
-
gr.
|
| 178 |
],
|
| 179 |
-
outputs=gr.
|
| 180 |
title="Swarm Neural Network Image Generation",
|
| 181 |
description="Upload an image and set the number of agents and epochs to train the Swarm Neural Network to generate a new image."
|
| 182 |
)
|
| 183 |
|
| 184 |
-
interface.launch()
|
|
|
|
| 172 |
interface = gr.Interface(
|
| 173 |
fn=train_snn,
|
| 174 |
inputs=[
|
| 175 |
+
gr.Image(type="pil", label="Upload Target Image"),
|
| 176 |
+
gr.Slider(minimum=500, maximum=3000, value=2000, label="Number of Agents"),
|
| 177 |
+
gr.Slider(minimum=10, maximum=200, value=100, label="Number of Epochs")
|
| 178 |
],
|
| 179 |
+
outputs=gr.Image(type="numpy", label="Generated Image"),
|
| 180 |
title="Swarm Neural Network Image Generation",
|
| 181 |
description="Upload an image and set the number of agents and epochs to train the Swarm Neural Network to generate a new image."
|
| 182 |
)
|
| 183 |
|
| 184 |
+
interface.launch()
|