youngtsai commited on
Commit
ce3af6c
1 Parent(s): fcdfe30

screenshot_blob_name

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -447,8 +447,8 @@ def process_transcript_and_screenshots_on_gcs(video_id):
447
  for entry in transcript:
448
  if 'img_file_id' not in entry:
449
  screenshot_path = screenshot_youtube_video(video_id, entry['start'])
450
- transcript_blob_name = f"{video_id}/{video_id}_{entry['start']}.jpg"
451
- img_file_id = upload_img_and_get_public_url(gcs_client, bucket_name, transcript_blob_name, screenshot_path)
452
  entry['img_file_id'] = img_file_id
453
  print(f"截图已上传到GCS: {img_file_id}")
454
 
 
447
  for entry in transcript:
448
  if 'img_file_id' not in entry:
449
  screenshot_path = screenshot_youtube_video(video_id, entry['start'])
450
+ screenshot_blob_name = f"{video_id}/{video_id}_{entry['start']}.jpg"
451
+ img_file_id = upload_img_and_get_public_url(gcs_client, bucket_name, screenshot_blob_name, screenshot_path)
452
  entry['img_file_id'] = img_file_id
453
  print(f"截图已上传到GCS: {img_file_id}")
454