ford442 commited on
Commit
15b739a
·
verified ·
1 Parent(s): 2d29d33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -149,9 +149,7 @@ with gr.Blocks(title="Whisper, Vicuna, & TTS Demo") as demo: # Updated title
149
  gr.Markdown("Speak into your microphone, get a transcription, Vicuna will process it, and then you'll hear the result!")
150
  with gr.Tab("Transcribe & Synthesize"):
151
  with gr.Row(): # Added a row for better layout
152
- record_button = gr.Button("Record", elem_id="rec_button")
153
- stop_button = gr.Button("Stop", elem_id="stop_button")
154
- mic_input = gr.Audio(sources="microphone", type="filepath", label="Speak Here")
155
  audio_upload = gr.Audio(sources="upload", type="filepath", label="Or Upload Audio File") # Added upload component
156
  transcription_output = gr.Textbox(lines=5, label="Transcription and Vicuna Response")
157
  audio_output = gr.Audio(label="Synthesized Speech", type="numpy", autoplay=True)
 
149
  gr.Markdown("Speak into your microphone, get a transcription, Vicuna will process it, and then you'll hear the result!")
150
  with gr.Tab("Transcribe & Synthesize"):
151
  with gr.Row(): # Added a row for better layout
152
+ mic_input = gr.Audio(sources="microphone", type="filepath", label="Speak Here", elem_id="mic_audio")
 
 
153
  audio_upload = gr.Audio(sources="upload", type="filepath", label="Or Upload Audio File") # Added upload component
154
  transcription_output = gr.Textbox(lines=5, label="Transcription and Vicuna Response")
155
  audio_output = gr.Audio(label="Synthesized Speech", type="numpy", autoplay=True)