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