Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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(
|
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(
|
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 |
|