瀏覽代碼

上傳檔案到 'AI_anchor'

oak 2 年之前
父節點
當前提交
e0d01accb5
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      AI_anchor/main.py

+ 3 - 2
AI_anchor/main.py

@@ -15,7 +15,8 @@ import string
 import requests
 from bs4 import BeautifulSoup
 import zipfile
-
+import csv
+from datetime import datetime
 def cKey(r,g,b,fuzz):
     col=openshot.Color()
     col.red=openshot.Keyframe(r)
@@ -200,7 +201,7 @@ def text_to_short_vedio_create(read_csv_use="導盲犬協會.csv",pwd_use="導
 
             fname=mp3_to_anchor("input_self/tmp1/%s.mp4"%('anchor_music'+str(i)))
             # print(fname)
-            time.sleep(180)
+            time.sleep(300)
             while True:
                 result = download_mp4(fname,str(i))
                 if result: