VinayHajare
commited on
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.Audio(sources="microphone", type="filepath"
|
83 |
-
gr.Radio(["transcribe", "translate"], label="Task",
|
84 |
-
gr.Checkbox(
|
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.Audio(sources="upload",
|
102 |
-
gr.Radio(["transcribe", "translate"], label="Task",
|
103 |
-
gr.Checkbox(
|
104 |
],
|
105 |
outputs="text",
|
106 |
layout="horizontal",
|
@@ -119,8 +119,8 @@ 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",
|
123 |
-
gr.Checkbox(
|
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"),
|
83 |
+
gr.Radio(["transcribe", "translate"], label="Task", value="transcribe"),
|
84 |
+
gr.Checkbox(value=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", label="Audio file", type="filepath"),
|
102 |
+
gr.Radio(["transcribe", "translate"], label="Task", value="transcribe"),
|
103 |
+
gr.Checkbox(value=False, label="Return timestamps"),
|
104 |
],
|
105 |
outputs="text",
|
106 |
layout="horizontal",
|
|
|
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", value="transcribe"),
|
123 |
+
gr.Checkbox(value=False, label="Return timestamps"),
|
124 |
],
|
125 |
outputs=["html", "text"],
|
126 |
layout="horizontal",
|