Spaces:
Sleeping
Sleeping
huangjy-pku
commited on
Commit
•
7e07f57
1
Parent(s):
4038a76
finalize
Browse files- README.md +1 -1
- app.py +8 -7
- assets/obj_features/3RScan-0cac75d0-8d6f-2d13-8c26-d771a31c3f50.pth +3 -0
- assets/obj_features/3RScan-ba6fdaac-a4c1-2dca-8380-f16765679fd7.pth +3 -0
- assets/scene_meshes/3RScan-0cac75d0-8d6f-2d13-8c26-d771a31c3f50.glb +3 -0
- assets/scene_meshes/3RScan-0cac760d-8d6f-2d13-8ea2-109ce4da9ac9.glb +2 -2
- assets/scene_meshes/3RScan-ba6fdaac-a4c1-2dca-8380-f16765679fd7.glb +3 -0
- utils.py +0 -1
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🦁
|
|
4 |
colorFrom: purple
|
5 |
colorTo: blue
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 4.
|
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[
|
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[
|
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 |
-
["
|
64 |
-
["Is there a
|
65 |
-
["
|
66 |
-
["
|
67 |
-
["
|
|
|
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:
|
3 |
-
size
|
|
|
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
|