Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,16 +29,7 @@ def transcribe(audio):
|
|
| 29 |
# Create Gradio interface
|
| 30 |
iface = gr.Interface(
|
| 31 |
fn=transcribe,
|
| 32 |
-
inputs=gr.Audio(type="filepath",
|
| 33 |
-
label="🎤 Record or Upload Audio",
|
| 34 |
-
sources=["microphone"],
|
| 35 |
-
waveform_options=gr.WaveformOptions(
|
| 36 |
-
waveform_color="#01C6FF",
|
| 37 |
-
waveform_progress_color="#0066B4",
|
| 38 |
-
skip_length=2,
|
| 39 |
-
show_controls=False,
|
| 40 |
-
),
|
| 41 |
-
),
|
| 42 |
outputs="text",
|
| 43 |
title="HuBERT ASR Demo",
|
| 44 |
description="🎙️ Speak into the microphone or upload an audio file to get a transcription.",
|
|
|
|
| 29 |
# Create Gradio interface
|
| 30 |
iface = gr.Interface(
|
| 31 |
fn=transcribe,
|
| 32 |
+
inputs=gr.Audio(sources=["upload", "microphone"], type="filepath", label="🎤 Upload or Record Audio"),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
outputs="text",
|
| 34 |
title="HuBERT ASR Demo",
|
| 35 |
description="🎙️ Speak into the microphone or upload an audio file to get a transcription.",
|