Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,
|
| 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 |
|