Spaces:
Running
on
Zero
Running
on
Zero
add punctuator and timestamped output
Browse files
app.py
CHANGED
@@ -134,7 +134,8 @@ mf_transcribe = gr.Interface(
|
|
134 |
fn=transcribe,
|
135 |
inputs=[
|
136 |
gr.inputs.Audio(source="microphone", type="filepath", optional=True),
|
137 |
-
gr.inputs.Textbox(lines=1, placeholder="Prompt", optional=True)
|
|
|
138 |
],
|
139 |
outputs=["text", "text"],
|
140 |
layout="horizontal",
|
@@ -148,7 +149,8 @@ file_transcribe = gr.Interface(
|
|
148 |
fn=transcribe,
|
149 |
inputs=[
|
150 |
gr.inputs.Audio(source="upload", type="filepath", optional=True, label="Audio file"),
|
151 |
-
gr.inputs.Textbox(lines=1, placeholder="Prompt", optional=True)
|
|
|
152 |
],
|
153 |
outputs=["text", "text"],
|
154 |
layout="horizontal",
|
@@ -161,7 +163,8 @@ yt_transcribe = gr.Interface(
|
|
161 |
fn=yt_transcribe,
|
162 |
inputs=[
|
163 |
gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
|
164 |
-
gr.inputs.Textbox(lines=1, placeholder="Prompt", optional=True)
|
|
|
165 |
],
|
166 |
outputs=["html", "text", "text"],
|
167 |
layout="horizontal",
|
|
|
134 |
fn=transcribe,
|
135 |
inputs=[
|
136 |
gr.inputs.Audio(source="microphone", type="filepath", optional=True),
|
137 |
+
gr.inputs.Textbox(lines=1, placeholder="Prompt", optional=True),
|
138 |
+
gr.inputs.Checkbox(default=True, label="Add punctuations")
|
139 |
],
|
140 |
outputs=["text", "text"],
|
141 |
layout="horizontal",
|
|
|
149 |
fn=transcribe,
|
150 |
inputs=[
|
151 |
gr.inputs.Audio(source="upload", type="filepath", optional=True, label="Audio file"),
|
152 |
+
gr.inputs.Textbox(lines=1, placeholder="Prompt", optional=True),
|
153 |
+
gr.inputs.Checkbox(default=True, label="Add punctuations")
|
154 |
],
|
155 |
outputs=["text", "text"],
|
156 |
layout="horizontal",
|
|
|
163 |
fn=yt_transcribe,
|
164 |
inputs=[
|
165 |
gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
|
166 |
+
gr.inputs.Textbox(lines=1, placeholder="Prompt", optional=True),
|
167 |
+
gr.inputs.Checkbox(default=True, label="Add punctuations")
|
168 |
],
|
169 |
outputs=["html", "text", "text"],
|
170 |
layout="horizontal",
|