youngtsai commited on
Commit
40d2f0f
·
1 Parent(s): 4023ad4

ai_content_json = ai_content_json[-1]

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1053,7 +1053,7 @@ def get_ai_content(password, video_id, df_string, topic, grade, level, specific_
1053
  upload_file_to_gcs_with_json_string(gcs_client, bucket_name, blob_name, ai_content_text)
1054
  print("ai_content已上傳到GCS")
1055
  else:
1056
- ai_content_json = ai_content_json[0]
1057
  ai_content = ai_content_json["content"]
1058
  prompt = ai_content_json["prompt"]
1059
 
 
1053
  upload_file_to_gcs_with_json_string(gcs_client, bucket_name, blob_name, ai_content_text)
1054
  print("ai_content已上傳到GCS")
1055
  else:
1056
+ ai_content_json = ai_content_json[-1]
1057
  ai_content = ai_content_json["content"]
1058
  prompt = ai_content_json["prompt"]
1059