Spaces:
Runtime error
Runtime error
Fix: API error
Browse files
app.py
CHANGED
|
@@ -125,7 +125,8 @@ with gr.Blocks() as demo:
|
|
| 125 |
out = gr.Textbox(label="Transcript")
|
| 126 |
|
| 127 |
btn = gr.Button("Transcribe")
|
| 128 |
-
btn.click(fn=transcribe_audio, inputs=audio, outputs=out)
|
|
|
|
| 129 |
|
| 130 |
|
| 131 |
if __name__ == "__main__":
|
|
|
|
| 125 |
out = gr.Textbox(label="Transcript")
|
| 126 |
|
| 127 |
btn = gr.Button("Transcribe")
|
| 128 |
+
btn.click(fn=transcribe_audio, inputs=audio, outputs=out, api_name="predict")
|
| 129 |
+
|
| 130 |
|
| 131 |
|
| 132 |
if __name__ == "__main__":
|