Spaces:
Running
Running
line = f"---- 時間: {start_time} ~ {end_time} ----\n{entry['text']}\n\n"
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ def process_youtube_link(link):
|
|
68 |
for entry in transcript:
|
69 |
start_time = format_seconds_to_time(entry['start'])
|
70 |
end_time = format_seconds_to_time(entry['start'] + entry['duration'])
|
71 |
-
line = f"
|
72 |
formatted_transcript += line
|
73 |
|
74 |
# 确保返回与 UI 组件预期匹配的输出
|
|
|
68 |
for entry in transcript:
|
69 |
start_time = format_seconds_to_time(entry['start'])
|
70 |
end_time = format_seconds_to_time(entry['start'] + entry['duration'])
|
71 |
+
line = f"---- 時間: {start_time} ~ {end_time} ----\n{entry['text']}\n\n"
|
72 |
formatted_transcript += line
|
73 |
|
74 |
# 确保返回与 UI 组件预期匹配的输出
|