Spaces:
Running
on
Zero
Running
on
Zero
xiaoyuxi
commited on
Commit
·
2af396c
1
Parent(s):
e0ba489
ui_fix
Browse files
app.py
CHANGED
|
@@ -850,22 +850,21 @@ with gr.Blocks(
|
|
| 850 |
with gr.Row():
|
| 851 |
with gr.Column(scale=1):
|
| 852 |
# Video upload section
|
| 853 |
-
|
| 854 |
-
|
| 855 |
-
|
| 856 |
-
|
| 857 |
-
|
| 858 |
-
|
| 859 |
-
|
| 860 |
-
|
| 861 |
-
)
|
| 862 |
|
| 863 |
|
| 864 |
# Traditional examples but with horizontal scroll styling
|
|
|
|
| 865 |
with gr.Row(elem_classes=["horizontal-examples"]):
|
| 866 |
-
gr.Markdown("🎨**Examples:** (scroll horizontally to see all videos)")
|
| 867 |
# Horizontal video examples with slider
|
| 868 |
-
gr.HTML("<div style='margin-top: 5px;'></div>")
|
| 869 |
gr.Examples(
|
| 870 |
examples=[
|
| 871 |
["./examples/kiss.mp4"],
|
|
|
|
| 850 |
with gr.Row():
|
| 851 |
with gr.Column(scale=1):
|
| 852 |
# Video upload section
|
| 853 |
+
gr.Markdown("### 📂 Select Video")
|
| 854 |
+
|
| 855 |
+
# Define video_input here so it can be referenced in examples
|
| 856 |
+
video_input = gr.Video(
|
| 857 |
+
label="Upload Video or Select Example",
|
| 858 |
+
format="mp4",
|
| 859 |
+
height=250 # Matched height with 3D viz
|
| 860 |
+
)
|
|
|
|
| 861 |
|
| 862 |
|
| 863 |
# Traditional examples but with horizontal scroll styling
|
| 864 |
+
gr.Markdown("🎨**Examples:** (scroll horizontally to see all videos)")
|
| 865 |
with gr.Row(elem_classes=["horizontal-examples"]):
|
|
|
|
| 866 |
# Horizontal video examples with slider
|
| 867 |
+
# gr.HTML("<div style='margin-top: 5px;'></div>")
|
| 868 |
gr.Examples(
|
| 869 |
examples=[
|
| 870 |
["./examples/kiss.mp4"],
|