TuringsSolutions commited on
Commit
d66d420
1 Parent(s): 6c8bc81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -172,13 +172,13 @@ def generate_new_image():
172
  interface = gr.Interface(
173
  fn=train_snn,
174
  inputs=[
175
- gr.components.Image(type="pil", label="Upload Target Image"),
176
- gr.components.Slider(minimum=500, maximum=3000, default=2000, label="Number of Agents"),
177
- gr.components.Slider(minimum=10, maximum=200, default=100, label="Number of Epochs")
178
  ],
179
- outputs=gr.components.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()
 
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()