youngtsai commited on
Commit
9931066
·
1 Parent(s): e71bdad

time.sleep(1)

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2248,7 +2248,7 @@ def refresh_video_LLM_all_content_by_sheet(sheet_url, sheet_qa_column, video_ids
2248
  print(f"{video_id} 存在逐字稿")
2249
 
2250
  qa_result = sheet_qa_success_tag
2251
- time.sleep(0.5)
2252
  # 更新呼叫,不再傳遞 sheet_video_column
2253
  update_sheet_data(sheet_url, qa_result, video_id)
2254
  success_video_ids.append(video_id) # 假設 update_sheet_data 成功就加入 success
@@ -2262,7 +2262,7 @@ def refresh_video_LLM_all_content_by_sheet(sheet_url, sheet_qa_column, video_ids
2262
  try:
2263
  # 即使前面出錯,還是嘗試更新 QA 狀態為 XX
2264
  update_sheet_data(sheet_url, qa_result, video_id)
2265
- time.sleep(0.5)
2266
  except Exception as update_e:
2267
  print(f"===更新 QA 狀態為 XX 時也發生錯誤===")
2268
  print(f"video_id: {video_id}")
 
2248
  print(f"{video_id} 存在逐字稿")
2249
 
2250
  qa_result = sheet_qa_success_tag
2251
+ time.sleep(1)
2252
  # 更新呼叫,不再傳遞 sheet_video_column
2253
  update_sheet_data(sheet_url, qa_result, video_id)
2254
  success_video_ids.append(video_id) # 假設 update_sheet_data 成功就加入 success
 
2262
  try:
2263
  # 即使前面出錯,還是嘗試更新 QA 狀態為 XX
2264
  update_sheet_data(sheet_url, qa_result, video_id)
2265
+ time.sleep(1)
2266
  except Exception as update_e:
2267
  print(f"===更新 QA 狀態為 XX 時也發生錯誤===")
2268
  print(f"video_id: {video_id}")