Spaces:
Runtime error
Runtime error
ok
Browse files
app.py
CHANGED
@@ -145,6 +145,8 @@ with block:
|
|
145 |
<p style="margin-bottom: 10px; font-size: 94%">
|
146 |
Whisper is a general-purpose speech recognition model. It is trained on a large dataset of diverse audio and is also a multi-task model that can perform multilingual speech recognition as well as speech translation and language identification.
|
147 |
</p>
|
|
|
|
|
148 |
</div>
|
149 |
"""
|
150 |
)
|
@@ -163,6 +165,15 @@ with block:
|
|
163 |
|
164 |
btn.click(inference, inputs=[audio], outputs=[text])
|
165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
# add another textbox to get url from user
|
167 |
url = gr.Textbox(label="URL", show_label=False, placeholder="Enter Youtube URL")
|
168 |
btn2 = gr.Button("Transcribe")
|
|
|
145 |
<p style="margin-bottom: 10px; font-size: 94%">
|
146 |
Whisper is a general-purpose speech recognition model. It is trained on a large dataset of diverse audio and is also a multi-task model that can perform multilingual speech recognition as well as speech translation and language identification.
|
147 |
</p>
|
148 |
+
<h2>YouWhisper</h2>
|
149 |
+
<p>YouWhisper converts youtube audios to text using Whisper..</p>
|
150 |
</div>
|
151 |
"""
|
152 |
)
|
|
|
165 |
|
166 |
btn.click(inference, inputs=[audio], outputs=[text])
|
167 |
|
168 |
+
# add a paragraph to show the details
|
169 |
+
gr.HTML(
|
170 |
+
"""
|
171 |
+
<p class="details">
|
172 |
+
or enter a Youtube url to convert to text
|
173 |
+
</p>
|
174 |
+
"""
|
175 |
+
)
|
176 |
+
|
177 |
# add another textbox to get url from user
|
178 |
url = gr.Textbox(label="URL", show_label=False, placeholder="Enter Youtube URL")
|
179 |
btn2 = gr.Button("Transcribe")
|