Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -94,7 +94,7 @@ demo = gr.Blocks()
|
|
94 |
mf_transcribe = gr.Interface(
|
95 |
fn=transcribe,
|
96 |
inputs=[
|
97 |
-
gr.Audio(
|
98 |
gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
99 |
],
|
100 |
outputs="text",
|
@@ -112,7 +112,7 @@ mf_transcribe = gr.Interface(
|
|
112 |
file_transcribe = gr.Interface(
|
113 |
fn=transcribe,
|
114 |
inputs=[
|
115 |
-
gr.Audio(
|
116 |
gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
117 |
],
|
118 |
outputs="text",
|
|
|
94 |
mf_transcribe = gr.Interface(
|
95 |
fn=transcribe,
|
96 |
inputs=[
|
97 |
+
gr.Audio(type="filepath", optional=True),
|
98 |
gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
99 |
],
|
100 |
outputs="text",
|
|
|
112 |
file_transcribe = gr.Interface(
|
113 |
fn=transcribe,
|
114 |
inputs=[
|
115 |
+
gr.Audio(type="filepath", optional=True, label="Audio file"),
|
116 |
gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
117 |
],
|
118 |
outputs="text",
|