lucas-ventura commited on
Commit
7da7f34
·
verified ·
1 Parent(s): 3dfd9b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -196,7 +196,7 @@ def download_from_url(url, output_path):
196
 
197
  @spaces.GPU
198
  def process_video(
199
- video_file, video_url, model_name: str = "asr-10k", do_sample: bool = False
200
  ):
201
  """Process a video file or URL and generate chapters."""
202
  progress = gr.Progress()
@@ -387,7 +387,7 @@ with gr.Blocks(title="Chapter-Llama", head=head) as demo:
387
 
388
  submit_btn.click(
389
  fn=update_status_and_process,
390
- inputs=[video_input, video_url_input, model_dropdown, do_sample],
391
  outputs=[status_area, output_text],
392
  )
393
 
 
196
 
197
  @spaces.GPU
198
  def process_video(
199
+ video_file, video_url="", model_name: str = "asr-10k", do_sample: bool = False
200
  ):
201
  """Process a video file or URL and generate chapters."""
202
  progress = gr.Progress()
 
387
 
388
  submit_btn.click(
389
  fn=update_status_and_process,
390
+ inputs=[video_input, model_dropdown, do_sample],
391
  outputs=[status_area, output_text],
392
  )
393