Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -257,8 +257,6 @@ def speech_to_text(video_file_path, selected_source_lang, whisper_model, num_spe
|
|
257 |
# Inspiration from https://huggingface.co/spaces/RASMUS/Whisper-youtube-crosslingual-subtitles
|
258 |
video_in = gr.Video(label="Video file", mirror_webcam=False)
|
259 |
youtube_url_in = gr.Textbox(label="Youtube url", lines=1, interactive=True)
|
260 |
-
video_out = gr.Video(label="Video Out", mirror_webcam=False)
|
261 |
-
|
262 |
|
263 |
df_init = pd.DataFrame(columns=['Start', 'End', 'Speaker', 'Text'])
|
264 |
memory = psutil.virtual_memory()
|
@@ -277,9 +275,12 @@ demo.encrypt = False
|
|
277 |
|
278 |
|
279 |
with demo:
|
280 |
-
|
281 |
-
|
282 |
-
|
|
|
|
|
|
|
283 |
with gr.Row():
|
284 |
gr.Markdown('''
|
285 |
### What you can do with this space:
|
@@ -334,5 +335,6 @@ with demo:
|
|
334 |
with gr.Column():
|
335 |
transcription_df.render()
|
336 |
system_info.render()
|
|
|
337 |
|
338 |
demo.launch(debug=True)
|
|
|
257 |
# Inspiration from https://huggingface.co/spaces/RASMUS/Whisper-youtube-crosslingual-subtitles
|
258 |
video_in = gr.Video(label="Video file", mirror_webcam=False)
|
259 |
youtube_url_in = gr.Textbox(label="Youtube url", lines=1, interactive=True)
|
|
|
|
|
260 |
|
261 |
df_init = pd.DataFrame(columns=['Start', 'End', 'Speaker', 'Text'])
|
262 |
memory = psutil.virtual_memory()
|
|
|
275 |
|
276 |
|
277 |
with demo:
|
278 |
+
gr.Markdown('''
|
279 |
+
<div>
|
280 |
+
<h1 style='text-align: center'>Whisper speaker diarization</h1>
|
281 |
+
This space uses Whisper models from <a href='https://github.com/openai/whisper' target='_blank'><b>OpenAI</b></a> to recoginze the speech and ECAPA-TDNN model from <a href='https://github.com/speechbrain/speechbrain' target='_blank'><b>SpeechBrain</b></a> to encode and clasify speakers</h2>
|
282 |
+
</div>
|
283 |
+
''')
|
284 |
with gr.Row():
|
285 |
gr.Markdown('''
|
286 |
### What you can do with this space:
|
|
|
335 |
with gr.Column():
|
336 |
transcription_df.render()
|
337 |
system_info.render()
|
338 |
+
gr.Markdown('''<center><img src='https://visitor-badge.glitch.me/badge?page_id=WhisperDiarizationSpeakers' alt='visitor badge'></center>''')
|
339 |
|
340 |
demo.launch(debug=True)
|