youngtsai commited on
Commit
2f6be19
1 Parent(s): cc41b6c

updated_transcript_json

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -459,8 +459,9 @@ def process_transcript_and_screenshots_on_gcs(video_id):
459
  updated_transcript_text = json.dumps(transcript, ensure_ascii=False, indent=2)
460
  upload_file_to_gcs_with_json_string(gcs_client, bucket_name, transcript_blob_name, updated_transcript_text)
461
  print("逐字稿已更新,包括截图链接")
 
462
 
463
- return updated_transcript_text
464
 
465
 
466
 
 
459
  updated_transcript_text = json.dumps(transcript, ensure_ascii=False, indent=2)
460
  upload_file_to_gcs_with_json_string(gcs_client, bucket_name, transcript_blob_name, updated_transcript_text)
461
  print("逐字稿已更新,包括截图链接")
462
+ updated_transcript_json = json.loads(updated_transcript_text)
463
 
464
+ return updated_transcript_json
465
 
466
 
467