Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|