Spaces:
Sleeping
Sleeping
Update app.py to load vid using url
Browse files
app.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import pandas as pd
|
| 3 |
|
|
|
|
|
|
|
| 4 |
# Static data - reordered columns: Method, #Param., Input Type, Control Type, Model Type, Mean Traj. ↓, Acc. ↑
|
| 5 |
STATIC_DATA = [
|
| 6 |
["w/o WM", "72B", "RGB", "–", "VLM", 6.24, 50.27],
|
|
@@ -71,15 +73,16 @@ with gr.Blocks(title="World-in-World: Building a Closed-Loop World Interface to
|
|
| 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("/
|
| 75 |
-
gr.Image("/
|
| 76 |
-
gr.Model3D("/
|
| 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("/
|
|
|
|
| 83 |
|
| 84 |
with gr.TabItem("📊 Leaderboard"):
|
| 85 |
leaderboard_table = gr.DataFrame(
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import pandas as pd
|
| 3 |
|
| 4 |
+
BASE_URL = "https://huggingface.co/datasets/zonszer/demo_source_data/resolve/main"
|
| 5 |
+
|
| 6 |
# Static data - reordered columns: Method, #Param., Input Type, Control Type, Model Type, Mean Traj. ↓, Acc. ↑
|
| 7 |
STATIC_DATA = [
|
| 8 |
["w/o WM", "72B", "RGB", "–", "VLM", 6.24, 50.27],
|
|
|
|
| 73 |
with gr.Column(scale=4, min_width=500):
|
| 74 |
gr.HTML("<h2 style='text-align: center; color: #db83b5;'>Closed-Loop Environmental Feedback</h2>")
|
| 75 |
with gr.Row():
|
| 76 |
+
gr.Video(f"{BASE_URL}/AR/FTwan21_lora/X7HyMhZNoso/E145/A001/world_model_gen/bbox_gen_video_1.mp4", label="First Person View", interactive=False)
|
| 77 |
+
gr.Image(f"{BASE_URL}/AR/FTwan21_lora/5ZKStnWn8Zo/E014/A000/real_obs_bbox.png", label="Bird's Eye View", type="pil", interactive=False)
|
| 78 |
+
gr.Model3D(f"{BASE_URL}/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=400):
|
| 82 |
gr.HTML("<h2 style='text-align: center;'>World Model's Generation</h2>")
|
| 83 |
# Using the new video path provided by the user
|
| 84 |
+
gr.Video(f"{BASE_URL}/AR/FTwan21_lora/5ZKStnWn8Zo/E014/A005/world_model_gen/obj_centered_gen_video_1.mp4", label="Generated View", interactive=False)
|
| 85 |
+
|
| 86 |
|
| 87 |
with gr.TabItem("📊 Leaderboard"):
|
| 88 |
leaderboard_table = gr.DataFrame(
|