huangjy-pku commited on
Commit
7e07f57
1 Parent(s): 4038a76
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🦁
4
  colorFrom: purple
5
  colorTo: blue
6
  sdk: gradio
7
- sdk_version: 4.10.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
 
4
  colorFrom: purple
5
  colorTo: blue
6
  sdk: gradio
7
+ sdk_version: 4.13.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
app.py CHANGED
@@ -16,12 +16,12 @@ with gr.Blocks(title='LEO Demo') as demo:
16
  with gr.Column(scale=5):
17
  dropdown_scene = gr.Dropdown(
18
  choices=MESH_NAMES,
19
- value=MESH_NAMES[0],
20
  interactive=True,
21
  label='Select a 3D scene',
22
  )
23
  model_3d = gr.Model3D(
24
- value=os.path.join(MESH_DIR, f'{MESH_NAMES[0]}.glb'),
25
  clear_color=[0.0, 0.0, 0.0, 0.0],
26
  label='3D Scene',
27
  camera_position=(90, 30, 10),
@@ -60,11 +60,12 @@ with gr.Blocks(title='LEO Demo') as demo:
60
  with gr.Accordion(label="Examples for user instruction:", open=True):
61
  gr.Examples(
62
  examples=[
63
- ["How many armchairs are there in this room?"],
64
- ["Is there a radio in the room?"],
65
- ["Where is the wardrobe located?TODO"],
66
- ["What is the shape of the shelf in front of the picture?TODO"],
67
- ["Plan for the task: Tidy up and arrange the nursery room.TODO"],
 
68
  ],
69
  inputs=user_chat_input,
70
  )
 
16
  with gr.Column(scale=5):
17
  dropdown_scene = gr.Dropdown(
18
  choices=MESH_NAMES,
19
+ value=MESH_NAMES[3],
20
  interactive=True,
21
  label='Select a 3D scene',
22
  )
23
  model_3d = gr.Model3D(
24
+ value=os.path.join(MESH_DIR, f'{MESH_NAMES[3]}.glb'),
25
  clear_color=[0.0, 0.0, 0.0, 0.0],
26
  label='3D Scene',
27
  camera_position=(90, 30, 10),
 
60
  with gr.Accordion(label="Examples for user instruction:", open=True):
61
  gr.Examples(
62
  examples=[
63
+ ["What color is the floor?"],
64
+ ["Is there a blackboard in the room?"],
65
+ ["How many chairs are there in this room?"],
66
+ ["Describe this scene."],
67
+ ["What is this room used for?"],
68
+ ["Plan for the task: tidy up and arrange this room."],
69
  ],
70
  inputs=user_chat_input,
71
  )
assets/obj_features/3RScan-0cac75d0-8d6f-2d13-8c26-d771a31c3f50.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d5e284c8545c12ffaf4bd55bb3a90a3ae676d5fd89c2704d9717b359c7029c6
3
+ size 1002083
assets/obj_features/3RScan-ba6fdaac-a4c1-2dca-8380-f16765679fd7.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4034f04801568e656adb6a11a34933f08323c0b4e483f763f634d85d6702769f
3
+ size 1002083
assets/scene_meshes/3RScan-0cac75d0-8d6f-2d13-8c26-d771a31c3f50.glb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:73f8b93f1aa4e889721f2ce0260b43d585e4c2c2435835d3d201f509865a9a31
3
+ size 9967832
assets/scene_meshes/3RScan-0cac760d-8d6f-2d13-8ea2-109ce4da9ac9.glb CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:419988aa4781ec7d0a06e9087c8a918a20c389c50b210daa6b3c47be981b28ac
3
- size 9445868
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e783da224958ebf94b094c2f44efb29d681a904d06a2caea9e025c8a293ea48
3
+ size 9437968
assets/scene_meshes/3RScan-ba6fdaac-a4c1-2dca-8380-f16765679fd7.glb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0781e65e4578d0bd5d48ec3298daaa2dcb1acadc1ba120e38bf183d6b7069724
3
+ size 12337180
utils.py CHANGED
@@ -1,4 +1,3 @@
1
-
2
  import datetime
3
  import json
4
  import os
 
 
1
  import datetime
2
  import json
3
  import os