Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ def render_slam_map():
|
|
| 39 |
return fig
|
| 40 |
|
| 41 |
with gr.Blocks() as demo:
|
| 42 |
-
gr.Markdown("## 🤖 Robot Movement + 🗺️ SLAM Path
|
| 43 |
|
| 44 |
with gr.Row():
|
| 45 |
with gr.Column():
|
|
@@ -58,7 +58,4 @@ with gr.Blocks() as demo:
|
|
| 58 |
a.click(lambda: move_robot("A"), outputs=[robot_plot, slam_plot])
|
| 59 |
d.click(lambda: move_robot("D"), outputs=[robot_plot, slam_plot])
|
| 60 |
|
| 61 |
-
robot_plot.render(render_robot_view())
|
| 62 |
-
slam_plot.render(render_slam_map())
|
| 63 |
-
|
| 64 |
demo.launch()
|
|
|
|
| 39 |
return fig
|
| 40 |
|
| 41 |
with gr.Blocks() as demo:
|
| 42 |
+
gr.Markdown("## 🤖 Robot Movement + 🗺️ SLAM Path")
|
| 43 |
|
| 44 |
with gr.Row():
|
| 45 |
with gr.Column():
|
|
|
|
| 58 |
a.click(lambda: move_robot("A"), outputs=[robot_plot, slam_plot])
|
| 59 |
d.click(lambda: move_robot("D"), outputs=[robot_plot, slam_plot])
|
| 60 |
|
|
|
|
|
|
|
|
|
|
| 61 |
demo.launch()
|