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