Spaces:
Runtime error
Runtime error
Commit
·
f9f41df
1
Parent(s):
8caee60
minor fix
Browse files
app.py
CHANGED
@@ -5,9 +5,18 @@ import gradio as gr
|
|
5 |
import os
|
6 |
|
7 |
# Get video & convert it
|
8 |
-
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
|
13 |
def prepareInput():
|
|
|
5 |
import os
|
6 |
|
7 |
# Get video & convert it
|
8 |
+
|
9 |
+
|
10 |
+
def video_to_audio(input_video_path, output_audio_path):
|
11 |
+
(
|
12 |
+
ffmpeg.input(input_video_path)
|
13 |
+
.output(output_audio_path, format='wav')
|
14 |
+
.run()
|
15 |
+
)
|
16 |
+
|
17 |
+
|
18 |
+
inputs_interface = gr.inputs.Video(label="Insert video").value
|
19 |
+
ffmpeg.input(inputs_interface).audio.output("input.wav", format="wav").run()
|
20 |
|
21 |
|
22 |
def prepareInput():
|