Explorar o código

gen video queue

ming %!s(int64=4) %!d(string=hai) anos
pai
achega
2aaf4ec963
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      api/main.py

+ 1 - 1
api/main.py

@@ -165,7 +165,7 @@ async def make_anchor_video_eng(req:request_eng):
             return {'msg':"無法辨別圖片網址"+imgu}
 
     save_history(req,name_hash)
-    x = threading.Thread(target=gen_video_eng, args=(name_hash,req.name, req.text_content, req.image_urls,req.sub_titles,int(req.avatar)))
+    x = threading.Thread(target=gen_video_queue_eng, args=(name_hash,req.name, req.text_content, req.image_urls,req.sub_titles,int(req.avatar)))
     x.start()
     return {"msg":"製作影片需要時間,請您耐心等候,成果會傳送至LINE群組中"}