Update deployer/gradio_generator.py
Browse files
deployer/gradio_generator.py
CHANGED
@@ -3,7 +3,6 @@
|
|
3 |
import gradio as gr
|
4 |
from deployer.simulator_interface import VirtualRobot
|
5 |
|
6 |
-
|
7 |
def robot_behavior(user_input: str) -> str:
|
8 |
"""
|
9 |
Bridge between user input and VirtualRobot actions with basic NLU.
|
@@ -22,7 +21,6 @@ def robot_behavior(user_input: str) -> str:
|
|
22 |
# Fallback for unrecognized commands
|
23 |
return bot.perform_action("say I'm sorry, I didn't understand that.")
|
24 |
|
25 |
-
|
26 |
def launch_gradio_app(
|
27 |
title: str = "RoboSage App",
|
28 |
description: str = "Your robot, your voice."
|
@@ -58,7 +56,6 @@ def launch_gradio_app(
|
|
58 |
|
59 |
return demo
|
60 |
|
61 |
-
|
62 |
if __name__ == "__main__":
|
63 |
app = launch_gradio_app()
|
64 |
app.launch()
|
|
|
3 |
import gradio as gr
|
4 |
from deployer.simulator_interface import VirtualRobot
|
5 |
|
|
|
6 |
def robot_behavior(user_input: str) -> str:
|
7 |
"""
|
8 |
Bridge between user input and VirtualRobot actions with basic NLU.
|
|
|
21 |
# Fallback for unrecognized commands
|
22 |
return bot.perform_action("say I'm sorry, I didn't understand that.")
|
23 |
|
|
|
24 |
def launch_gradio_app(
|
25 |
title: str = "RoboSage App",
|
26 |
description: str = "Your robot, your voice."
|
|
|
56 |
|
57 |
return demo
|
58 |
|
|
|
59 |
if __name__ == "__main__":
|
60 |
app = launch_gradio_app()
|
61 |
app.launch()
|