Dibiddo commited on
Commit
07f2f87
ยท
verified ยท
1 Parent(s): 0191540

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -6
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()