Spaces:
Sleeping
Sleeping
Update and fix
Browse files
app.py
CHANGED
@@ -37,8 +37,9 @@ with gr.Blocks(title="World-in-World: Building a Closed-Loop World Interface to
|
|
37 |
with gr.Tabs():
|
38 |
with gr.TabItem("π§βπ« Interactive Demo"):
|
39 |
with gr.Row():
|
40 |
-
# Left Zone:
|
41 |
with gr.Column(scale=2, min_width=350):
|
|
|
42 |
# Mimicking the blue instruction box from the image
|
43 |
gr.HTML("""
|
44 |
<div style='background-color: #e6f3ff; border: 1px solid #b3d9ff; border-radius: 8px; padding: 15px; font-family: sans-serif;'>
|
@@ -67,21 +68,18 @@ with gr.Blocks(title="World-in-World: Building a Closed-Loop World Interface to
|
|
67 |
""")
|
68 |
|
69 |
# Middle Zone: Closed-Loop Environmental Feedback
|
70 |
-
with gr.Column(scale=4, min_width=
|
71 |
gr.HTML("<h2 style='text-align: center; color: #db83b5;'>Closed-Loop Environmental Feedback</h2>")
|
72 |
with gr.Row():
|
73 |
-
# The single video on the left of this zone
|
74 |
gr.Video("/home/user/app/demo_source_data/AR/FTwan21_lora/X7HyMhZNoso/E145/A001/world_model_gen/bbox_gen_video_1.mp4", label="First Person View", interactive=False)
|
75 |
-
|
76 |
-
|
77 |
-
gr.Image("/home/user/app/demo_source_data/AR/FTwan21_lora/5ZKStnWn8Zo/E014/A000/real_obs_bbox.png", label="Bird's Eye View", type="pil", interactive=False)
|
78 |
-
gr.Model3D("/home/user/app/demo_source_data/scenes_glb/5ZKStnWn8Zo.glb", label="3D Scene", interactive=False)
|
79 |
|
80 |
# Right Zone: World Model's Generation
|
81 |
-
with gr.Column(scale=3, min_width=
|
82 |
gr.HTML("<h2 style='text-align: center;'>World Model's Generation</h2>")
|
83 |
-
|
84 |
-
|
85 |
|
86 |
with gr.TabItem("π Leaderboard"):
|
87 |
leaderboard_table = gr.DataFrame(
|
|
|
37 |
with gr.Tabs():
|
38 |
with gr.TabItem("π§βπ« Interactive Demo"):
|
39 |
with gr.Row():
|
40 |
+
# Left Zone: Agent's View
|
41 |
with gr.Column(scale=2, min_width=350):
|
42 |
+
gr.HTML("<h2 style='text-align: center;'>Agent's View</h2>")
|
43 |
# Mimicking the blue instruction box from the image
|
44 |
gr.HTML("""
|
45 |
<div style='background-color: #e6f3ff; border: 1px solid #b3d9ff; border-radius: 8px; padding: 15px; font-family: sans-serif;'>
|
|
|
68 |
""")
|
69 |
|
70 |
# Middle Zone: Closed-Loop Environmental Feedback
|
71 |
+
with gr.Column(scale=4, min_width=500):
|
72 |
gr.HTML("<h2 style='text-align: center; color: #db83b5;'>Closed-Loop Environmental Feedback</h2>")
|
73 |
with gr.Row():
|
|
|
74 |
gr.Video("/home/user/app/demo_source_data/AR/FTwan21_lora/X7HyMhZNoso/E145/A001/world_model_gen/bbox_gen_video_1.mp4", label="First Person View", interactive=False)
|
75 |
+
gr.Image("/home/user/app/demo_source_data/AR/FTwan21_lora/5ZKStnWn8Zo/E014/A000/real_obs_bbox.png", label="Bird's Eye View", type="pil", interactive=False)
|
76 |
+
gr.Model3D("/home/user/app/demo_source_data/scenes_glb/5ZKStnWn8Zo.glb", label="3D Scene", interactive=False)
|
|
|
|
|
77 |
|
78 |
# Right Zone: World Model's Generation
|
79 |
+
with gr.Column(scale=3, min_width=400):
|
80 |
gr.HTML("<h2 style='text-align: center;'>World Model's Generation</h2>")
|
81 |
+
# Using the new video path provided by the user
|
82 |
+
gr.Video("/home/user/app/demo_source_data/AR/FTwan21_lora/5ZKStnWn8Zo/E014/A005/world_model_gen/obj_centered_gen_video_1.mp4", label="Generated View", interactive=False)
|
83 |
|
84 |
with gr.TabItem("π Leaderboard"):
|
85 |
leaderboard_table = gr.DataFrame(
|