zfzhang-thu commited on
Commit
31cc188
1 Parent(s): c50391a

add description

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -115,9 +115,16 @@ with gr.Blocks(title='LEO Demo') as demo:
115
  outputs=[gr.Model3D(
116
  clear_color=[0.0, 0.0, 0.0, 0.0], camera_position=(80, 100, 6), label=f"3D Model for Step {i+1} (if the step exists)") for i in range(STEP_COUNTS)],
117
  examples=[
118
- ["Start Working at the desk.", "1. Walk to the desk.", "2. Sit on the brown leather sofa chair in front of the desk.", "3. Turn on the opened laptop in front of you on the desk.", "4. Grab the cup beside the laptop to drink."] + [""] * (STEP_COUNTS - 4)
 
 
 
 
 
 
119
  ],
120
- title="LEO Plan-to-Masks: Input plan, Output 3D Masks for each step, Red denotes predicted target object"
 
121
  )
122
 
123
  with gr.Tab("LEO Task-to-Plan and Masks"):
@@ -138,6 +145,7 @@ with gr.Blocks(title='LEO Demo') as demo:
138
  ["Start Working at the desk."]
139
  ],
140
  title="LEO Task-to-Plan and Masks: Input task, Output plan text and 3D Masks for each step, Red denotes predicted target object",
 
141
  # js="""
142
  # function() {
143
  # const stepCounts = """ + str(STEP_COUNTS) + """;
 
115
  outputs=[gr.Model3D(
116
  clear_color=[0.0, 0.0, 0.0, 0.0], camera_position=(80, 100, 6), label=f"3D Model for Step {i+1} (if the step exists)") for i in range(STEP_COUNTS)],
117
  examples=[
118
+ [
119
+ "Start Working at the desk.",
120
+ "1. Walk to the desk.",
121
+ "2. Sit on the brown leather sofa chair in front of the desk.",
122
+ "3. Turn on the opened laptop in front of you on the desk.",
123
+ "4. Grab the cup beside the laptop to drink."
124
+ ] + [""] * (STEP_COUNTS - 4)
125
  ],
126
+ title="LEO Plan-to-Masks: Input plan, Output 3D Masks for each step, Red denotes predicted target object",
127
+ description="Please input a task description and action steps. Examples can be found at the bottom of the interface."
128
  )
129
 
130
  with gr.Tab("LEO Task-to-Plan and Masks"):
 
145
  ["Start Working at the desk."]
146
  ],
147
  title="LEO Task-to-Plan and Masks: Input task, Output plan text and 3D Masks for each step, Red denotes predicted target object",
148
+ description="Please input a task description. Examples can be found at the bottom of the interface."
149
  # js="""
150
  # function() {
151
  # const stepCounts = """ + str(STEP_COUNTS) + """;