Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
2f8d81b
1
Parent(s):
1dc8d82
update examples
Browse files
app.py
CHANGED
|
@@ -582,7 +582,7 @@ with gr.Blocks(
|
|
| 582 |
ckpt_progress = gr.Markdown(visible=False)
|
| 583 |
load_status = gr.Markdown(visible=True)
|
| 584 |
reset_btn = gr.Button("Reset Session", variant="secondary")
|
| 585 |
-
examples_list = [["./tennis.mp4"]]
|
| 586 |
with gr.Column(scale=2):
|
| 587 |
preview = gr.Image(label="Preview", interactive=True)
|
| 588 |
frame_slider = gr.Slider(label="Frame", minimum=0, maximum=0, step=1, value=0, interactive=True)
|
|
@@ -596,6 +596,8 @@ with gr.Blocks(
|
|
| 596 |
propagate_btn = gr.Button("Propagate across video", variant="primary")
|
| 597 |
propagate_status = gr.Markdown(visible=True)
|
| 598 |
|
|
|
|
|
|
|
| 599 |
with gr.Row():
|
| 600 |
render_btn = gr.Button("Render MP4 for smooth playback")
|
| 601 |
playback_video = gr.Video(label="Rendered Playback", interactive=False)
|
|
@@ -617,6 +619,7 @@ with gr.Blocks(
|
|
| 617 |
show_progress=True,
|
| 618 |
)
|
| 619 |
|
|
|
|
| 620 |
gr.Examples(
|
| 621 |
examples=examples_list,
|
| 622 |
inputs=[video_in],
|
|
|
|
| 582 |
ckpt_progress = gr.Markdown(visible=False)
|
| 583 |
load_status = gr.Markdown(visible=True)
|
| 584 |
reset_btn = gr.Button("Reset Session", variant="secondary")
|
| 585 |
+
examples_list = [["./tennis.mp4", "./football.mp4", "./basket.mp4", "./hurdles.mp4"]]
|
| 586 |
with gr.Column(scale=2):
|
| 587 |
preview = gr.Image(label="Preview", interactive=True)
|
| 588 |
frame_slider = gr.Slider(label="Frame", minimum=0, maximum=0, step=1, value=0, interactive=True)
|
|
|
|
| 596 |
propagate_btn = gr.Button("Propagate across video", variant="primary")
|
| 597 |
propagate_status = gr.Markdown(visible=True)
|
| 598 |
|
| 599 |
+
# Examples (place before the render MP4 button) — defined after handler below
|
| 600 |
+
|
| 601 |
with gr.Row():
|
| 602 |
render_btn = gr.Button("Render MP4 for smooth playback")
|
| 603 |
playback_video = gr.Video(label="Rendered Playback", interactive=False)
|
|
|
|
| 619 |
show_progress=True,
|
| 620 |
)
|
| 621 |
|
| 622 |
+
# (moved) Examples are defined above the render button
|
| 623 |
gr.Examples(
|
| 624 |
examples=examples_list,
|
| 625 |
inputs=[video_in],
|