Spaces:
Runtime error
Runtime error
Commit
·
c04ff7f
1
Parent(s):
19d6a92
app file updated
Browse files
app.py
CHANGED
@@ -124,10 +124,10 @@ demo = gr.Blocks()
|
|
124 |
mf_transcribe = gr.Interface(
|
125 |
fn=transcribe,
|
126 |
inputs=[
|
127 |
-
gr.
|
128 |
-
gr.
|
129 |
-
gr.
|
130 |
-
gr.
|
131 |
],
|
132 |
outputs="text",
|
133 |
layout="horizontal",
|
@@ -143,10 +143,10 @@ mf_transcribe = gr.Interface(
|
|
143 |
file_transcribe = gr.Interface(
|
144 |
fn=transcribe,
|
145 |
inputs=[
|
146 |
-
gr.
|
147 |
-
gr.
|
148 |
-
gr.
|
149 |
-
gr.
|
150 |
],
|
151 |
outputs="text",
|
152 |
layout="horizontal",
|
@@ -162,10 +162,10 @@ file_transcribe = gr.Interface(
|
|
162 |
yt_transcribe = gr.Interface(
|
163 |
fn=yt_transcribe,
|
164 |
inputs=[
|
165 |
-
gr.
|
166 |
-
gr.
|
167 |
-
gr.
|
168 |
-
gr.
|
169 |
],
|
170 |
outputs=["html", "text"],
|
171 |
layout="horizontal",
|
|
|
124 |
mf_transcribe = gr.Interface(
|
125 |
fn=transcribe,
|
126 |
inputs=[
|
127 |
+
gr.Audio(source="microphone", type="filepath", optional=True),
|
128 |
+
gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
129 |
+
gr.Checkbox(label="Return timestamps"),
|
130 |
+
gr.Dropdown(choices=["English", "Uzbek"], label="Language"),
|
131 |
],
|
132 |
outputs="text",
|
133 |
layout="horizontal",
|
|
|
143 |
file_transcribe = gr.Interface(
|
144 |
fn=transcribe,
|
145 |
inputs=[
|
146 |
+
gr.Audio(source="upload", type="filepath", optional=True, label="Audio file"),
|
147 |
+
gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
148 |
+
gr.Checkbox(label="Return timestamps"),
|
149 |
+
gr.Dropdown(choices=["English", "Uzbek"], label="Language"),
|
150 |
],
|
151 |
outputs="text",
|
152 |
layout="horizontal",
|
|
|
162 |
yt_transcribe = gr.Interface(
|
163 |
fn=yt_transcribe,
|
164 |
inputs=[
|
165 |
+
gr.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
|
166 |
+
gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
167 |
+
gr.Checkbox(label="Return timestamps"),
|
168 |
+
gr.Dropdown(choices=["English", "Uzbek"], label="Language"),
|
169 |
],
|
170 |
outputs=["html", "text"],
|
171 |
layout="horizontal",
|