JaweriaGenAI commited on
Commit
b0013ed
Β·
verified Β·
1 Parent(s): 333d381

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -134,7 +134,7 @@ textarea, input[type='text'] { background: #f0f0f0; border-radius: 8px; }
134
  send_btn = gr.Button("πŸš€", scale=1)
135
 
136
  with gr.Row():
137
- mic_audio = gr.Audio(source="microphone", type="filepath", label="πŸŽ™οΈ Record Voice")
138
  mic_audio.change(transcribe_audio, [mic_audio], [chat_input])
139
 
140
  with gr.Row():
@@ -157,4 +157,4 @@ textarea, input[type='text'] { background: #f0f0f0; border-radius: 8px; }
157
  save_btn.click(lambda: gr.update(choices=list_saved_files()), [], [dropdown])
158
  load_btn.click(load_chat, [dropdown], [chatbot, state, status])
159
 
160
- demo.launch()
 
134
  send_btn = gr.Button("πŸš€", scale=1)
135
 
136
  with gr.Row():
137
+ mic_audio = gr.Audio(type="filepath", label="πŸŽ™οΈ Record Voice", interactive=True)
138
  mic_audio.change(transcribe_audio, [mic_audio], [chat_input])
139
 
140
  with gr.Row():
 
157
  save_btn.click(lambda: gr.update(choices=list_saved_files()), [], [dropdown])
158
  load_btn.click(load_chat, [dropdown], [chatbot, state, status])
159
 
160
+ demo.launch()