Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,17 @@ def convert_to_text(audio_path : str) -> str:
|
|
7 |
return result["text"]
|
8 |
|
9 |
audio_input = gr.components.Audio(type="filepath")
|
10 |
-
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
iface.launch()
|
|
|
7 |
return result["text"]
|
8 |
|
9 |
audio_input = gr.components.Audio(type="filepath")
|
10 |
+
|
11 |
+
# Interface for Gradio
|
12 |
+
iface = gr.Interface(
|
13 |
+
fn=convert_to_text,
|
14 |
+
inputs=audio_input,
|
15 |
+
outputs="text"
|
16 |
+
title="Free audio transcription",
|
17 |
+
description="Upload an audio here and get a bullet-point summary of its content.",
|
18 |
+
theme="Monochrome",
|
19 |
+
live=True,
|
20 |
+
capture_session=True,
|
21 |
+
)
|
22 |
+
|
23 |
iface.launch()
|