concauu commited on
Commit
2d73b6c
·
verified ·
1 Parent(s): 8f9810d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -184,7 +184,7 @@ with gr.Blocks(css=custom_css, title="FLUX.1 [dev] Enhanced UI with Voice Recogn
184
 
185
  with gr.Tab("Voice Recognition"):
186
  gr.Markdown("### Step 1A: Record Your Prompt")
187
- audio_input = gr.Audio(source="microphone", type="filepath", label="Record your prompt")
188
  transcribe_button = gr.Button("Transcribe Audio", variant="secondary")
189
  voice_text = gr.Textbox(label="Transcribed Prompt", placeholder="Your spoken prompt will appear here...", lines=3)
190
  transcribe_button.click(transcribe_audio, audio_input, voice_text)
 
184
 
185
  with gr.Tab("Voice Recognition"):
186
  gr.Markdown("### Step 1A: Record Your Prompt")
187
+ audio_input = gr.Audio(source=["microphone"], type="filepath", label="Record your prompt")
188
  transcribe_button = gr.Button("Transcribe Audio", variant="secondary")
189
  voice_text = gr.Textbox(label="Transcribed Prompt", placeholder="Your spoken prompt will appear here...", lines=3)
190
  transcribe_button.click(transcribe_audio, audio_input, voice_text)