Update app.py
Browse files
app.py
CHANGED
@@ -79,9 +79,9 @@ demo = gr.Blocks()
|
|
79 |
mic_transcribe = gr.Interface(
|
80 |
fn=transcribe,
|
81 |
inputs=[
|
82 |
-
gr.
|
83 |
-
gr.
|
84 |
-
gr.
|
85 |
],
|
86 |
outputs="text",
|
87 |
layout="horizontal",
|
@@ -98,9 +98,9 @@ mic_transcribe = gr.Interface(
|
|
98 |
file_transcribe = gr.Interface(
|
99 |
fn=transcribe,
|
100 |
inputs=[
|
101 |
-
gr.
|
102 |
-
gr.
|
103 |
-
gr.
|
104 |
],
|
105 |
outputs="text",
|
106 |
layout="horizontal",
|
@@ -118,9 +118,9 @@ file_transcribe = gr.Interface(
|
|
118 |
yt_transcribe = gr.Interface(
|
119 |
fn=yt_transcribe,
|
120 |
inputs=[
|
121 |
-
gr.
|
122 |
-
gr.
|
123 |
-
gr.
|
124 |
],
|
125 |
outputs=["html", "text"],
|
126 |
layout="horizontal",
|
|
|
79 |
mic_transcribe = gr.Interface(
|
80 |
fn=transcribe,
|
81 |
inputs=[
|
82 |
+
gr.Audio(sources="microphone", type="filepath", optional=True),
|
83 |
+
gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
84 |
+
gr.Checkbox(default=False, label="Return timestamps"),
|
85 |
],
|
86 |
outputs="text",
|
87 |
layout="horizontal",
|
|
|
98 |
file_transcribe = gr.Interface(
|
99 |
fn=transcribe,
|
100 |
inputs=[
|
101 |
+
gr.Audio(sources="upload", optional=True, label="Audio file", type="filepath"),
|
102 |
+
gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
103 |
+
gr.Checkbox(default=False, label="Return timestamps"),
|
104 |
],
|
105 |
outputs="text",
|
106 |
layout="horizontal",
|
|
|
118 |
yt_transcribe = gr.Interface(
|
119 |
fn=yt_transcribe,
|
120 |
inputs=[
|
121 |
+
gr.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube Video URL"),
|
122 |
+
gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
123 |
+
gr.Checkbox(default=False, label="Return timestamps"),
|
124 |
],
|
125 |
outputs=["html", "text"],
|
126 |
layout="horizontal",
|