Spaces:
Sleeping
Sleeping
is_transcript_exists
Browse files
app.py
CHANGED
@@ -438,8 +438,6 @@ def process_transcript_and_screenshots_on_gcs(video_id):
|
|
438 |
# 从YouTube获取逐字稿并上传
|
439 |
transcript = get_transcript(video_id)
|
440 |
transcript_text = json.dumps(transcript, ensure_ascii=False, indent=2)
|
441 |
-
upload_file_to_gcs_with_json_string(gcs_client, bucket_name, transcript_blob_name, transcript_text)
|
442 |
-
print("逐字稿已上传到GCS")
|
443 |
else:
|
444 |
# 逐字稿已存在,下载逐字稿内容
|
445 |
print("逐字稿已存在于GCS中")
|
|
|
438 |
# 从YouTube获取逐字稿并上传
|
439 |
transcript = get_transcript(video_id)
|
440 |
transcript_text = json.dumps(transcript, ensure_ascii=False, indent=2)
|
|
|
|
|
441 |
else:
|
442 |
# 逐字稿已存在,下载逐字稿内容
|
443 |
print("逐字稿已存在于GCS中")
|