Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,6 @@
|
|
4 |
|
5 |
import gradio as gr
|
6 |
|
7 |
-
|
8 |
model = gr.load("models/openai/whisper-large-v3-turbo")
|
9 |
|
10 |
# Define a function to process the output and extract only the transcription text
|
@@ -17,7 +16,7 @@ def process_transcription(audio_input):
|
|
17 |
|
18 |
# Launch the interface
|
19 |
gr.Interface(
|
20 |
-
|
21 |
-
|
22 |
outputs="text"
|
23 |
).launch()
|
|
|
4 |
|
5 |
import gradio as gr
|
6 |
|
|
|
7 |
model = gr.load("models/openai/whisper-large-v3-turbo")
|
8 |
|
9 |
# Define a function to process the output and extract only the transcription text
|
|
|
16 |
|
17 |
# Launch the interface
|
18 |
gr.Interface(
|
19 |
+
process_transcription,
|
20 |
+
gr.Audio(type="filepath"),
|
21 |
outputs="text"
|
22 |
).launch()
|