Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -105,4 +105,14 @@ with gr.Blocks() as app:
|
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
+
submit_button = gr.Button("ζδΊ€")
|
| 109 |
+
|
| 110 |
+
submit_button.click(fn=lambda x: process_audio(x), inputs=[audio_input], outputs=[output_text])
|
| 111 |
+
|
| 112 |
+
clear_button = gr.Button("ζΈ
ι€") # ζ°ε’ζΈ
ι€ζι
|
| 113 |
+
|
| 114 |
+
clear_button.click(fn=lambda x: "", inputs=[], outputs=[audio_input]) # ζΈ
ι€θΌΈε
₯ζ¬δ½
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
if __name__ == "__main__":
|
| 118 |
+
app.launch()
|