Update app.py
Browse files
app.py
CHANGED
|
@@ -153,8 +153,8 @@ with gr.Blocks() as demo:
|
|
| 153 |
""")
|
| 154 |
|
| 155 |
with gr.Row():
|
| 156 |
-
num_agents = gr.Slider(minimum=2, maximum=20, value=
|
| 157 |
-
bat_life = gr.Slider(minimum=5000, maximum=20000, value=
|
| 158 |
btn = gr.Button("Run Simulation")
|
| 159 |
output_gif = gr.Image(label="Simulation Result (GIF)")
|
| 160 |
btn.click(fn=run_simulation, inputs=[num_agents, bat_life], outputs=output_gif)
|
|
|
|
| 153 |
""")
|
| 154 |
|
| 155 |
with gr.Row():
|
| 156 |
+
num_agents = gr.Slider(minimum=2, maximum=20, value=5, step=1, label="Number of Agents")
|
| 157 |
+
bat_life = gr.Slider(minimum=5000, maximum=20000, value=7000, step=1000, label="Task Capacity (Battery Life)")
|
| 158 |
btn = gr.Button("Run Simulation")
|
| 159 |
output_gif = gr.Image(label="Simulation Result (GIF)")
|
| 160 |
btn.click(fn=run_simulation, inputs=[num_agents, bat_life], outputs=output_gif)
|