Spaces:
Runtime error
Runtime error
Update app.py
Browse filesUpdated accordingly Gradio Docs.
app.py
CHANGED
@@ -79,7 +79,7 @@ demo = gr.Blocks()
|
|
79 |
mic_transcribe = gr.Interface(
|
80 |
fn=transcribe,
|
81 |
inputs=[
|
82 |
-
gr.inputs.Audio(
|
83 |
gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
84 |
gr.inputs.Checkbox(default=False, label="Return timestamps"),
|
85 |
],
|
@@ -98,7 +98,7 @@ mic_transcribe = gr.Interface(
|
|
98 |
file_transcribe = gr.Interface(
|
99 |
fn=transcribe,
|
100 |
inputs=[
|
101 |
-
gr.inputs.Audio(
|
102 |
gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
103 |
gr.inputs.Checkbox(default=False, label="Return timestamps"),
|
104 |
],
|
|
|
79 |
mic_transcribe = gr.Interface(
|
80 |
fn=transcribe,
|
81 |
inputs=[
|
82 |
+
gr.inputs.Audio(sources="microphone", type="filepath", optional=True),
|
83 |
gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
84 |
gr.inputs.Checkbox(default=False, label="Return timestamps"),
|
85 |
],
|
|
|
98 |
file_transcribe = gr.Interface(
|
99 |
fn=transcribe,
|
100 |
inputs=[
|
101 |
+
gr.inputs.Audio(sources="upload", optional=True, label="Audio file", type="filepath"),
|
102 |
gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
103 |
gr.inputs.Checkbox(default=False, label="Return timestamps"),
|
104 |
],
|