Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -465,9 +465,10 @@ with gr.Blocks() as demo:
|
|
465 |
drp = gr.Dropdown(["insta", "youtube"])
|
466 |
btn = gr.Button("transcribe")
|
467 |
out = gr.Textbox(interactive=True)
|
|
|
468 |
video_path_output = gr.Textbox(label="Video Path", visible=False)
|
469 |
audio_path_output = gr.Textbox(label="Video Path", visible=False)
|
470 |
-
btn.click(fn=process_video, inputs=[inp, drp], outputs=[out, video_path_output, audio_path_output])
|
471 |
with gr.Row():
|
472 |
vid_out = gr.Video()
|
473 |
btn2 = gr.Button("transcribe")
|
|
|
465 |
drp = gr.Dropdown(["insta", "youtube"])
|
466 |
btn = gr.Button("transcribe")
|
467 |
out = gr.Textbox(interactive=True)
|
468 |
+
video_file_input = gr.Video(label="Upload Video File")
|
469 |
video_path_output = gr.Textbox(label="Video Path", visible=False)
|
470 |
audio_path_output = gr.Textbox(label="Video Path", visible=False)
|
471 |
+
btn.click(fn=process_video, inputs=[video_file_input, inp, drp], outputs=[out, video_path_output, audio_path_output])
|
472 |
with gr.Row():
|
473 |
vid_out = gr.Video()
|
474 |
btn2 = gr.Button("transcribe")
|