updated
Browse files
app.py
CHANGED
@@ -94,7 +94,8 @@ with gr.Blocks(theme="huggingface") as demo:
|
|
94 |
with gr.Tabs():
|
95 |
with gr.TabItem("Microphone"):
|
96 |
with gr.Row():
|
97 |
-
mic_input = gr.Audio(
|
|
|
98 |
mic_task = gr.Radio(["transcribe", "translate"], label="Task", value="transcribe")
|
99 |
mic_output = gr.Textbox(label="Transcription")
|
100 |
mic_button = gr.Button("Transcribe")
|
|
|
94 |
with gr.Tabs():
|
95 |
with gr.TabItem("Microphone"):
|
96 |
with gr.Row():
|
97 |
+
mic_input = gr.Audio(type="filepath", label="Microphone Input")
|
98 |
+
# mic_input = gr.Audio(source="microphone", type="filepath", label="Microphone Input")
|
99 |
mic_task = gr.Radio(["transcribe", "translate"], label="Task", value="transcribe")
|
100 |
mic_output = gr.Textbox(label="Transcription")
|
101 |
mic_button = gr.Button("Transcribe")
|