Spaces:
Runtime error
Runtime error
Update
Browse files
app.py
CHANGED
@@ -134,7 +134,7 @@ def extract_images_and_embeds(video_id, video_path, subtitles, output, expanded=
|
|
134 |
batch_list = []
|
135 |
vtt = webvtt.read(subtitles)
|
136 |
|
137 |
-
for idx, caption in progress.tqdm(
|
138 |
st_time = str2time(caption.start)
|
139 |
ed_time = str2time(caption.end)
|
140 |
|
|
|
134 |
batch_list = []
|
135 |
vtt = webvtt.read(subtitles)
|
136 |
|
137 |
+
for idx, caption in enumerate(progress.tqdm(webvtt.read(subtitles), total=vtt.total_length, desc="Generating embeddings")):
|
138 |
st_time = str2time(caption.start)
|
139 |
ed_time = str2time(caption.end)
|
140 |
|