Csaba Bolyos
commited on
Commit
·
0cc8dbf
1
Parent(s):
7df5245
ui fixes
Browse files- demo/app.py +3 -3
demo/app.py
CHANGED
|
@@ -102,6 +102,7 @@ def create_demo() -> gr.Blocks:
|
|
| 102 |
# Input column
|
| 103 |
with gr.Column(scale=1, min_width=260):
|
| 104 |
|
|
|
|
| 105 |
video_in = gr.Video(label="Upload Video", sources=["upload"], format="mp4")
|
| 106 |
# URL input option
|
| 107 |
url_input_enh = gr.Textbox(
|
|
@@ -141,12 +142,11 @@ def create_demo() -> gr.Blocks:
|
|
| 141 |
with gr.Accordion("Options", open=False):
|
| 142 |
enable_viz = gr.Radio([("Yes", 1), ("No", 0)], value=1, label="Visualization")
|
| 143 |
include_kp = gr.Radio([("Yes", 1), ("No", 0)], value=0, label="Raw Keypoints")
|
| 144 |
-
analyze_btn_enh = gr.Button("🚀 Enhanced Analysis", variant="primary", size="lg")
|
| 145 |
|
| 146 |
# Output column
|
| 147 |
with gr.Column(scale=2, min_width=320):
|
| 148 |
-
viz_out = gr.Video(label="Annotated Video")
|
| 149 |
-
with gr.Accordion("Raw JSON", open=
|
| 150 |
json_out = gr.JSON(label="Movement Analysis", elem_classes=["json-output"])
|
| 151 |
|
| 152 |
# Wiring
|
|
|
|
| 102 |
# Input column
|
| 103 |
with gr.Column(scale=1, min_width=260):
|
| 104 |
|
| 105 |
+
analyze_btn_enh = gr.Button("🚀 Analys", variant="primary", size="lg")
|
| 106 |
video_in = gr.Video(label="Upload Video", sources=["upload"], format="mp4")
|
| 107 |
# URL input option
|
| 108 |
url_input_enh = gr.Textbox(
|
|
|
|
| 142 |
with gr.Accordion("Options", open=False):
|
| 143 |
enable_viz = gr.Radio([("Yes", 1), ("No", 0)], value=1, label="Visualization")
|
| 144 |
include_kp = gr.Radio([("Yes", 1), ("No", 0)], value=0, label="Raw Keypoints")
|
|
|
|
| 145 |
|
| 146 |
# Output column
|
| 147 |
with gr.Column(scale=2, min_width=320):
|
| 148 |
+
viz_out = gr.Video(label="Annotated Video", scale=1, height=400)
|
| 149 |
+
with gr.Accordion("Raw JSON", open=True):
|
| 150 |
json_out = gr.JSON(label="Movement Analysis", elem_classes=["json-output"])
|
| 151 |
|
| 152 |
# Wiring
|