Spaces:
Runtime error
Runtime error
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.components.Audio(source="microphone", type="filepath", optional=True),
|
| 97 |
+
gr.components.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
| 98 |
],
|
| 99 |
outputs="text",
|
| 100 |
layout="horizontal",
|
|
|
|
| 111 |
file_transcribe = gr.Interface(
|
| 112 |
fn=transcribe,
|
| 113 |
inputs=[
|
| 114 |
+
gr.components.Audio(source="upload", type="filepath", optional=True, label="Audio file"),
|
| 115 |
+
gr.components.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
| 116 |
],
|
| 117 |
outputs="text",
|
| 118 |
layout="horizontal",
|
|
|
|
| 129 |
yt_transcribe = gr.Interface(
|
| 130 |
fn=yt_transcribe,
|
| 131 |
inputs=[
|
| 132 |
+
gr.components.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
|
| 133 |
+
gr.components.Radio(["transcribe", "translate"], label="Task", default="transcribe")
|
| 134 |
],
|
| 135 |
outputs=["html", "text"],
|
| 136 |
layout="horizontal",
|