Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,6 @@ def convert_to_text(audio_path : str) -> str:
|
|
| 6 |
result = model.transcribe(audio_path)
|
| 7 |
return result["text"]
|
| 8 |
|
| 9 |
-
audio_input = gr.components.Audio()
|
| 10 |
iface = gr.Interface(fn=convert_to_text, inputs=audio_input, outputs="text")
|
| 11 |
iface.launch()
|
|
|
|
| 6 |
result = model.transcribe(audio_path)
|
| 7 |
return result["text"]
|
| 8 |
|
| 9 |
+
audio_input = gr.components.Audio(type="filepath")
|
| 10 |
iface = gr.Interface(fn=convert_to_text, inputs=audio_input, outputs="text")
|
| 11 |
iface.launch()
|