Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -32,8 +32,8 @@ def get_frame_count(filepath):
|
|
32 |
video.release()
|
33 |
|
34 |
# LIMITS
|
35 |
-
if frame_count >
|
36 |
-
frame_count =
|
37 |
|
38 |
return gr.update(maximum=frame_count)
|
39 |
|
@@ -276,7 +276,7 @@ with gr.Blocks(css=css) as demo:
|
|
276 |
loading_icon = gr.HTML(loading_icon_html)
|
277 |
share_button = gr.Button("Share to community", elem_id="share-btn")
|
278 |
gr.Examples(
|
279 |
-
examples=[["Indiana Jones moonwalk in the wild jungle", "./examples/moonwalk.mp4", 'depth',
|
280 |
fn=run_inference,
|
281 |
inputs=[prompt,
|
282 |
video_path,
|
|
|
32 |
video.release()
|
33 |
|
34 |
# LIMITS
|
35 |
+
if frame_count > 24 :
|
36 |
+
frame_count = 24 # limit to 24 frames to avoid cuDNN errors
|
37 |
|
38 |
return gr.update(maximum=frame_count)
|
39 |
|
|
|
276 |
loading_icon = gr.HTML(loading_icon_html)
|
277 |
share_button = gr.Button("Share to community", elem_id="share-btn")
|
278 |
gr.Examples(
|
279 |
+
examples=[["Indiana Jones moonwalk in the wild jungle", "./examples/moonwalk.mp4", 'depth', 24, 424242]],
|
280 |
fn=run_inference,
|
281 |
inputs=[prompt,
|
282 |
video_path,
|