Update app.py
Browse files
app.py
CHANGED
@@ -95,8 +95,8 @@ demo = gr.Blocks()
|
|
95 |
mf_transcribe = gr.Interface(
|
96 |
fn=transcribe,
|
97 |
inputs=[
|
98 |
-
gr.
|
99 |
-
gr.
|
100 |
],
|
101 |
outputs="text",
|
102 |
layout="horizontal",
|
@@ -113,8 +113,8 @@ mf_transcribe = gr.Interface(
|
|
113 |
file_transcribe = gr.Interface(
|
114 |
fn=transcribe,
|
115 |
inputs=[
|
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",
|
|
|
95 |
mf_transcribe = gr.Interface(
|
96 |
fn=transcribe,
|
97 |
inputs=[
|
98 |
+
gr.Audio(sources="microphone", type="filepath"),
|
99 |
+
gr.Radio(["transcribe", "translate"], label="Task", value="transcribe"),
|
100 |
],
|
101 |
outputs="text",
|
102 |
layout="horizontal",
|
|
|
113 |
file_transcribe = gr.Interface(
|
114 |
fn=transcribe,
|
115 |
inputs=[
|
116 |
+
gr.Audio(sources="upload", type="filepath", label="Audio file"),
|
117 |
+
gr.Radio(["transcribe", "translate"], label="Task", value="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", value="transcribe")
|
136 |
],
|
137 |
outputs=["html", "text"],
|
138 |
layout="horizontal",
|