Update app.py
Browse files
app.py
CHANGED
|
@@ -22,14 +22,21 @@ def transcribe(audio):
|
|
| 22 |
return result.text
|
| 23 |
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
gr.Interface(
|
| 26 |
-
title
|
| 27 |
fn=transcribe,
|
| 28 |
-
inputs=[
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
"textbox"
|
| 33 |
-
],
|
| 34 |
-
live=True).launch()
|
| 35 |
-
|
|
|
|
| 22 |
return result.text
|
| 23 |
|
| 24 |
|
| 25 |
+
# gr.Interface(
|
| 26 |
+
# title = 'OpenAI-Whisper Audio to Text Web UI',
|
| 27 |
+
# fn=transcribe,
|
| 28 |
+
# inputs=[
|
| 29 |
+
# gr.inputs.Audio(type="file")
|
| 30 |
+
# ],
|
| 31 |
+
# outputs=[
|
| 32 |
+
# "textbox"
|
| 33 |
+
# ],
|
| 34 |
+
# live=True).launch()
|
| 35 |
+
|
| 36 |
gr.Interface(
|
| 37 |
+
title="OpenAI-Whisper Audio to Text Web UI",
|
| 38 |
fn=transcribe,
|
| 39 |
+
inputs=[gr.components.Audio(type="file")],
|
| 40 |
+
outputs=["textbox"],
|
| 41 |
+
live=True
|
| 42 |
+
).launch()
|
|
|
|
|
|
|
|
|
|
|
|