Spaces:
Running
Running
Mathis Petrovich
commited on
Commit
·
860f2b5
1
Parent(s):
dd3991f
maximum to 24
Browse files
app.py
CHANGED
|
@@ -196,7 +196,7 @@ autoplay loop disablepictureinpicture id="{video_id}" title="{title}">
|
|
| 196 |
return video_html
|
| 197 |
|
| 198 |
|
| 199 |
-
def retrieve_component(retrieve_function, text, splits_choice, nvids, n_component=
|
| 200 |
# cannot produce more than n_compoenent
|
| 201 |
nvids = min(nvids, n_component)
|
| 202 |
|
|
@@ -262,8 +262,8 @@ with gr.Blocks(css=CSS, theme=theme) as demo:
|
|
| 262 |
info="The motion gallery is coming from HumanML3D")
|
| 263 |
|
| 264 |
with gr.Column(scale=1):
|
| 265 |
-
# nvideo_slider = gr.Slider(minimum=4, maximum=
|
| 266 |
-
nvideo_slider = gr.Radio([4, 8, 12, 16, 24
|
| 267 |
value=8,
|
| 268 |
info="Number of videos to display")
|
| 269 |
|
|
@@ -279,7 +279,7 @@ with gr.Blocks(css=CSS, theme=theme) as demo:
|
|
| 279 |
|
| 280 |
i = -1
|
| 281 |
# should indent
|
| 282 |
-
for _ in range(
|
| 283 |
with gr.Row():
|
| 284 |
for _ in range(4):
|
| 285 |
i += 1
|
|
@@ -322,7 +322,7 @@ with gr.Blocks(css=CSS, theme=theme) as demo:
|
|
| 322 |
# )
|
| 323 |
|
| 324 |
def clear_videos():
|
| 325 |
-
return [None for x in range(
|
| 326 |
|
| 327 |
clear.click(fn=clear_videos, outputs=videos + [text])
|
| 328 |
|
|
|
|
| 196 |
return video_html
|
| 197 |
|
| 198 |
|
| 199 |
+
def retrieve_component(retrieve_function, text, splits_choice, nvids, n_component=24):
|
| 200 |
# cannot produce more than n_compoenent
|
| 201 |
nvids = min(nvids, n_component)
|
| 202 |
|
|
|
|
| 262 |
info="The motion gallery is coming from HumanML3D")
|
| 263 |
|
| 264 |
with gr.Column(scale=1):
|
| 265 |
+
# nvideo_slider = gr.Slider(minimum=4, maximum=24, step=4, value=8, label="Number of videos")
|
| 266 |
+
nvideo_slider = gr.Radio([4, 8, 12, 16, 24], label="Videos",
|
| 267 |
value=8,
|
| 268 |
info="Number of videos to display")
|
| 269 |
|
|
|
|
| 279 |
|
| 280 |
i = -1
|
| 281 |
# should indent
|
| 282 |
+
for _ in range(6):
|
| 283 |
with gr.Row():
|
| 284 |
for _ in range(4):
|
| 285 |
i += 1
|
|
|
|
| 322 |
# )
|
| 323 |
|
| 324 |
def clear_videos():
|
| 325 |
+
return [None for x in range(24)] + [default_text]
|
| 326 |
|
| 327 |
clear.click(fn=clear_videos, outputs=videos + [text])
|
| 328 |
|