Spaces:
Sleeping
Sleeping
add first files
Browse files
app.py
CHANGED
@@ -134,7 +134,7 @@ def summarize_video(video_path, ratio_sum, playback_speed):
|
|
134 |
seconds = clip_sentences[idx]['duration'][0] * (1/playback_speed)
|
135 |
minutes, seconds = divmod(seconds, 60)
|
136 |
if important_idxs[idx]:
|
137 |
-
html_text += '<p> <
|
138 |
else:
|
139 |
html_text += f"{int(minutes)}:{int(seconds):02} | {clip_sentences[idx]['sentence']}</p>"
|
140 |
print(html_text)
|
|
|
134 |
seconds = clip_sentences[idx]['duration'][0] * (1/playback_speed)
|
135 |
minutes, seconds = divmod(seconds, 60)
|
136 |
if important_idxs[idx]:
|
137 |
+
html_text += '<p> <b>' + f"{int(minutes)}:{int(seconds):02} | {clip_sentences[idx]['sentence']} </b> </p>"
|
138 |
else:
|
139 |
html_text += f"{int(minutes)}:{int(seconds):02} | {clip_sentences[idx]['sentence']}</p>"
|
140 |
print(html_text)
|