Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -94,8 +94,8 @@ demo = gr.Blocks()
|
|
94 |
mf_transcribe = gr.Interface(
|
95 |
fn=transcribe,
|
96 |
inputs=[
|
97 |
-
gr.
|
98 |
-
gr.
|
99 |
],
|
100 |
outputs="text",
|
101 |
layout="horizontal",
|
@@ -112,8 +112,8 @@ mf_transcribe = gr.Interface(
|
|
112 |
file_transcribe = gr.Interface(
|
113 |
fn=transcribe,
|
114 |
inputs=[
|
115 |
-
gr.
|
116 |
-
gr.
|
117 |
],
|
118 |
outputs="text",
|
119 |
layout="horizontal",
|
@@ -130,8 +130,8 @@ file_transcribe = gr.Interface(
|
|
130 |
yt_transcribe = gr.Interface(
|
131 |
fn=yt_transcribe,
|
132 |
inputs=[
|
133 |
-
gr.
|
134 |
-
gr.
|
135 |
],
|
136 |
outputs=["html", "text"],
|
137 |
layout="horizontal",
|
|
|
94 |
mf_transcribe = gr.Interface(
|
95 |
fn=transcribe,
|
96 |
inputs=[
|
97 |
+
gr.Audio(source="microphone", type="filepath", optional=True),
|
98 |
+
gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
99 |
],
|
100 |
outputs="text",
|
101 |
layout="horizontal",
|
|
|
112 |
file_transcribe = gr.Interface(
|
113 |
fn=transcribe,
|
114 |
inputs=[
|
115 |
+
gr.Audio(source="upload", type="filepath", optional=True, label="Audio file"),
|
116 |
+
gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
117 |
],
|
118 |
outputs="text",
|
119 |
layout="horizontal",
|
|
|
130 |
yt_transcribe = gr.Interface(
|
131 |
fn=yt_transcribe,
|
132 |
inputs=[
|
133 |
+
gr.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
|
134 |
+
gr.Radio(["transcribe", "translate"], label="Task", default="transcribe")
|
135 |
],
|
136 |
outputs=["html", "text"],
|
137 |
layout="horizontal",
|