sawadogosalif commited on
Commit
9881c0d
·
verified ·
1 Parent(s): dd05165

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -167,12 +167,12 @@ def transcribe_and_update(audio_filepath: str, history: str, apply_enhance: bool
167
 
168
 
169
  def build_interface():
170
- with gr.Blocks(theme="huggingface") as demo:
171
  gr.Markdown("# 🗣️ ASR Moore Live 🧠")
172
  gr.Markdown("Speech Recognition interface for Moore language. Records or uploads audio, always denoises, and optionally enhances before ASR.")
173
 
174
  with gr.Row():
175
- audio_input = gr.Audio(source="microphone", type="filepath", label="Record or upload audio")
176
  state_box = gr.State(value="")
177
  enhance_checkbox = gr.Checkbox(label="Apply Enhancement", value=False)
178
 
 
167
 
168
 
169
  def build_interface():
170
+ with gr.Blocks() as demo:
171
  gr.Markdown("# 🗣️ ASR Moore Live 🧠")
172
  gr.Markdown("Speech Recognition interface for Moore language. Records or uploads audio, always denoises, and optionally enhances before ASR.")
173
 
174
  with gr.Row():
175
+ audio_input = gr.Audio(type="filepath", label="Record or upload audio", sources=["microphone", "upload"])
176
  state_box = gr.State(value="")
177
  enhance_checkbox = gr.Checkbox(label="Apply Enhancement", value=False)
178