Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -75,15 +75,15 @@ def infer(video_in):
|
|
75 |
print_directory_contents('./outputs/tmp')
|
76 |
wave_files = get_wav_files('./outputs/tmp')
|
77 |
print(wave_files)
|
78 |
-
return
|
79 |
|
80 |
with gr.Blocks() as demo:
|
81 |
with gr.Column(elem_id="col-container"):
|
82 |
gr.Markdown("# Video-To-Audio")
|
83 |
video_in = gr.Video(label='Video IN')
|
84 |
submit_btn = gr.Button("Submit")
|
85 |
-
|
86 |
-
output_sound = gr.Textbox(label="Audio OUT")
|
87 |
submit_btn.click(
|
88 |
fn = infer,
|
89 |
inputs = [video_in],
|
|
|
75 |
print_directory_contents('./outputs/tmp')
|
76 |
wave_files = get_wav_files('./outputs/tmp')
|
77 |
print(wave_files)
|
78 |
+
return wave_files[0]
|
79 |
|
80 |
with gr.Blocks() as demo:
|
81 |
with gr.Column(elem_id="col-container"):
|
82 |
gr.Markdown("# Video-To-Audio")
|
83 |
video_in = gr.Video(label='Video IN')
|
84 |
submit_btn = gr.Button("Submit")
|
85 |
+
output_sound = gr.Audio(label="Audio OUT")
|
86 |
+
#output_sound = gr.Textbox(label="Audio OUT")
|
87 |
submit_btn.click(
|
88 |
fn = infer,
|
89 |
inputs = [video_in],
|