Spaces:
Sleeping
Sleeping
Temporarily remove JS for compatibility - will restore when Gradio updates
Browse files
app.py
CHANGED
|
@@ -630,15 +630,13 @@ with gr.Blocks(title="Video Trimmer Tool", theme=gr.themes.Soft(), css=custom_cs
|
|
| 630 |
start_slider.change(
|
| 631 |
fn=update_start_and_seek,
|
| 632 |
inputs=[start_slider],
|
| 633 |
-
outputs=[start_time_display]
|
| 634 |
-
js="(value) => { const video = document.querySelector('#main_video_player video'); if (video && !isNaN(value)) { video.currentTime = value; } return value; }"
|
| 635 |
)
|
| 636 |
|
| 637 |
end_slider.change(
|
| 638 |
fn=update_end_and_seek,
|
| 639 |
inputs=[end_slider],
|
| 640 |
-
outputs=[end_time_display]
|
| 641 |
-
js="(value) => { const video = document.querySelector('#main_video_player video'); if (video && !isNaN(value)) { video.currentTime = value; } return value; }"
|
| 642 |
)
|
| 643 |
|
| 644 |
# Google Drive native picker event handlers
|
|
|
|
| 630 |
start_slider.change(
|
| 631 |
fn=update_start_and_seek,
|
| 632 |
inputs=[start_slider],
|
| 633 |
+
outputs=[start_time_display]
|
|
|
|
| 634 |
)
|
| 635 |
|
| 636 |
end_slider.change(
|
| 637 |
fn=update_end_and_seek,
|
| 638 |
inputs=[end_slider],
|
| 639 |
+
outputs=[end_time_display]
|
|
|
|
| 640 |
)
|
| 641 |
|
| 642 |
# Google Drive native picker event handlers
|