Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ def audio_transcription(audiofile):
|
|
68 |
return json.dumps(transcription, indent=4)
|
69 |
|
70 |
iface = gr.Interface(audio_transcription,
|
71 |
-
gr.Audio(sources="upload", type="
|
72 |
"text",
|
73 |
description="Upload an audio file and get its transcription in JSON format.")
|
74 |
iface.launch()
|
|
|
68 |
return json.dumps(transcription, indent=4)
|
69 |
|
70 |
iface = gr.Interface(audio_transcription,
|
71 |
+
gr.Audio(sources="upload", type="filepath"),
|
72 |
"text",
|
73 |
description="Upload an audio file and get its transcription in JSON format.")
|
74 |
iface.launch()
|