Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def transcribe_audio(audio_file):
|
|
| 12 |
return result["text"]
|
| 13 |
|
| 14 |
def main():
|
| 15 |
-
audio_input = gr.Audio(type="
|
| 16 |
output_text = gr.Textbox()
|
| 17 |
|
| 18 |
iface = gr.Interface(fn=transcribe_audio, inputs=audio_input,
|
|
|
|
| 12 |
return result["text"]
|
| 13 |
|
| 14 |
def main():
|
| 15 |
+
audio_input = gr.Audio(source="upload", type="filepath")
|
| 16 |
output_text = gr.Textbox()
|
| 17 |
|
| 18 |
iface = gr.Interface(fn=transcribe_audio, inputs=audio_input,
|