Update app.py
Browse files
app.py
CHANGED
@@ -9,10 +9,13 @@ def convert_to_text(audio_path : str) -> str:
|
|
9 |
|
10 |
|
11 |
audio_input = gr.components.Audio(type="filepath")
|
12 |
-
iface = gr.Interface(
|
13 |
-
|
|
|
|
|
14 |
title="Transform your audio into text",
|
15 |
description="Upload an audio here, either from your mobile or laptop and get it transcribed in a matter of seconds.",
|
16 |
-
theme="Monochrome"
|
|
|
17 |
|
18 |
iface.launch()
|
|
|
9 |
|
10 |
|
11 |
audio_input = gr.components.Audio(type="filepath")
|
12 |
+
iface = gr.Interface(
|
13 |
+
fn=convert_to_text,
|
14 |
+
inputs=audio_input,
|
15 |
+
outputs="text",
|
16 |
title="Transform your audio into text",
|
17 |
description="Upload an audio here, either from your mobile or laptop and get it transcribed in a matter of seconds.",
|
18 |
+
theme="Monochrome"
|
19 |
+
)
|
20 |
|
21 |
iface.launch()
|