Spaces:
Sleeping
Sleeping
Commit
•
4b48f59
1
Parent(s):
5501e45
Update app.py
Browse files
app.py
CHANGED
@@ -237,7 +237,7 @@ def transcribe_yt(yt_url, task="transcribe", group_by_speaker=True, progress=gr.
|
|
237 |
segments = diarization.for_json()["content"]
|
238 |
|
239 |
# only fetch the transcription result after performing diarization
|
240 |
-
transcription, _ = job.result()
|
241 |
|
242 |
# align the ASR transcriptions and diarization timestamps
|
243 |
transcription = align(transcription, segments, group_by_speaker=group_by_speaker)
|
@@ -297,7 +297,7 @@ youtube = gr.Interface(
|
|
297 |
],
|
298 |
allow_flagging="never",
|
299 |
title=title,
|
300 |
-
examples=[["https://www.youtube.com/watch?v=m8u-18Q0s7I", True
|
301 |
cache_examples=False,
|
302 |
description=description,
|
303 |
article=article,
|
|
|
237 |
segments = diarization.for_json()["content"]
|
238 |
|
239 |
# only fetch the transcription result after performing diarization
|
240 |
+
_, transcription, _ = job.result()
|
241 |
|
242 |
# align the ASR transcriptions and diarization timestamps
|
243 |
transcription = align(transcription, segments, group_by_speaker=group_by_speaker)
|
|
|
297 |
],
|
298 |
allow_flagging="never",
|
299 |
title=title,
|
300 |
+
examples=[["https://www.youtube.com/watch?v=m8u-18Q0s7I", True]],
|
301 |
cache_examples=False,
|
302 |
description=description,
|
303 |
article=article,
|