Spaces:
Sleeping
Sleeping
summary_json
Browse files
app.py
CHANGED
@@ -393,7 +393,8 @@ def get_video_id_summary(video_id, df_string):
|
|
393 |
exists, file_id = check_file_exists(service, folder_id, file_name)
|
394 |
if not exists:
|
395 |
summary = generate_df_summarise(df_string)
|
396 |
-
|
|
|
397 |
print("summary已上传到Google Drive")
|
398 |
else:
|
399 |
# 逐字稿已存在,下载逐字稿内容
|
|
|
393 |
exists, file_id = check_file_exists(service, folder_id, file_name)
|
394 |
if not exists:
|
395 |
summary = generate_df_summarise(df_string)
|
396 |
+
summary_json = {"summary", summary}
|
397 |
+
file_id = upload_content_directly(service, file_name, folder_id, summary_json)
|
398 |
print("summary已上传到Google Drive")
|
399 |
else:
|
400 |
# 逐字稿已存在,下载逐字稿内容
|