Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,14 +67,21 @@ def process_audio(audio_file):
|
|
| 67 |
|
| 68 |
|
| 69 |
with gr.Blocks() as app:
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
|
| 75 |
-
#
|
| 76 |
with gr.Row():
|
| 77 |
audio_input=gr.Audio(source="microphone", type="filepath", label="ไธๅณ่ช้ณ")
|
| 78 |
output_text=gr.JSON(label="็ตๆ")
|
| 79 |
|
| 80 |
-
submit_button=gr.Button("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
|
| 68 |
|
| 69 |
with gr.Blocks() as app:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
|
|
|
|
| 71 |
with gr.Row():
|
| 72 |
audio_input=gr.Audio(source="microphone", type="filepath", label="ไธๅณ่ช้ณ")
|
| 73 |
output_text=gr.JSON(label="็ตๆ")
|
| 74 |
|
| 75 |
+
submit_button=gr.Button("ๆไบค") # ไฟฎๆญฃไบ้ไธ่ก
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
submit_button.click(fn=lambda x: process_audio(x), inputs=[audio_input], outputs=[output_text])
|
| 85 |
+
|
| 86 |
+
if __name__ == "__main__":
|
| 87 |
+
app.launch()
|