mgbam commited on
Commit
fae0440
·
verified ·
1 Parent(s): 35d9420

Update deployer/gradio_generator.py

Browse files
Files changed (1) hide show
  1. deployer/gradio_generator.py +8 -4
deployer/gradio_generator.py CHANGED
@@ -1,10 +1,13 @@
1
- # gradio_generator.py - CPU & Spaces-compatible Gradio interface for RoboSage
 
2
 
3
  import gradio as gr
4
  from deployer.simulator_interface import VirtualRobot
5
 
6
  def robot_behavior(user_input: str) -> str:
7
- """Bridge between user input and VirtualRobot actions."""
 
 
8
  bot = VirtualRobot()
9
  text = user_input.strip().lower()
10
 
@@ -27,11 +30,12 @@ def launch_gradio_app(
27
  title: str = "RoboSage App",
28
  description: str = "Your robot, your voice."
29
  ) -> gr.Blocks:
30
- """Constructs and returns a Gradio Blocks app."""
 
 
31
  with gr.Blocks() as demo:
32
  gr.Markdown(f"# 🤖 {title}\n\n{description}")
33
 
34
- # Define components without trailing commas
35
  inp = gr.Textbox(
36
  label="Speak or Type",
37
  lines=1,
 
1
+ # gradio_generator.py
2
+ # CPU & Spaces-compatible Gradio interface for RoboSage
3
 
4
  import gradio as gr
5
  from deployer.simulator_interface import VirtualRobot
6
 
7
  def robot_behavior(user_input: str) -> str:
8
+ """
9
+ Bridge between user input and VirtualRobot actions.
10
+ """
11
  bot = VirtualRobot()
12
  text = user_input.strip().lower()
13
 
 
30
  title: str = "RoboSage App",
31
  description: str = "Your robot, your voice."
32
  ) -> gr.Blocks:
33
+ """
34
+ Constructs and returns a Gradio Blocks app.
35
+ """
36
  with gr.Blocks() as demo:
37
  gr.Markdown(f"# 🤖 {title}\n\n{description}")
38
 
 
39
  inp = gr.Textbox(
40
  label="Speak or Type",
41
  lines=1,