Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def transcribe(audio_file):
|
|
18 |
|
19 |
return {"aligned": result_aligned["segments"], "word_segments": result_aligned["word_segments"]}
|
20 |
|
21 |
-
inputs = gr.Audio(
|
22 |
outputs = gr.JSON()
|
23 |
|
24 |
gr.Interface(fn=transcribe, inputs=inputs, outputs=outputs).launch()
|
|
|
18 |
|
19 |
return {"aligned": result_aligned["segments"], "word_segments": result_aligned["word_segments"]}
|
20 |
|
21 |
+
inputs = gr.Audio(sources="upload", type="filepath")
|
22 |
outputs = gr.JSON()
|
23 |
|
24 |
gr.Interface(fn=transcribe, inputs=inputs, outputs=outputs).launch()
|