fffiloni commited on
Commit
6e02ec8
1 Parent(s): b440bd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -32,8 +32,8 @@ def get_frame_count(filepath):
32
  video.release()
33
 
34
  # LIMITS
35
- if frame_count > 36 :
36
- frame_count = 36 # limit to 236 frames to avoid cuDNN errors
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', 36, 424242]],
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,