Spaces:
Sleeping
Sleeping
Fixed changes for the latest Gradio
Browse files
app.py
CHANGED
|
@@ -263,8 +263,8 @@ mf_transcribe = gr.Interface(
|
|
| 263 |
file_transcribe = gr.Interface(
|
| 264 |
fn=transcribe,
|
| 265 |
inputs=[
|
| 266 |
-
gr.
|
| 267 |
-
gr.
|
| 268 |
],
|
| 269 |
outputs="text",
|
| 270 |
layout="horizontal",
|
|
@@ -281,8 +281,8 @@ file_transcribe = gr.Interface(
|
|
| 281 |
yt_transcribe = gr.Interface(
|
| 282 |
fn=yt_transcribe,
|
| 283 |
inputs=[
|
| 284 |
-
gr.
|
| 285 |
-
gr.
|
| 286 |
],
|
| 287 |
outputs=["html", "text"],
|
| 288 |
layout="horizontal",
|
|
|
|
| 263 |
file_transcribe = gr.Interface(
|
| 264 |
fn=transcribe,
|
| 265 |
inputs=[
|
| 266 |
+
gr.Audio(source="upload", type="filepath", optional=True, label="Audio file"),
|
| 267 |
+
gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
| 268 |
],
|
| 269 |
outputs="text",
|
| 270 |
layout="horizontal",
|
|
|
|
| 281 |
yt_transcribe = gr.Interface(
|
| 282 |
fn=yt_transcribe,
|
| 283 |
inputs=[
|
| 284 |
+
gr.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
|
| 285 |
+
gr.Radio(["transcribe", "translate"], label="Task", default="transcribe")
|
| 286 |
],
|
| 287 |
outputs=["html", "text"],
|
| 288 |
layout="horizontal",
|