|
@@ -94,11 +94,11 @@ async def progress_page():
|
|
|
|
|
|
@app.post("/make_anchor_video_v2")
|
|
|
async def make_anchor_video_v2(req:request2):
|
|
|
- x = threading.Thread(target=anchor_video_v3, args=(req.name, req.text_content, req.image_urls))
|
|
|
+ x = threading.Thread(target=anchor_video_v2, args=(req.name, req.text_content, req.image_urls))
|
|
|
x.start()
|
|
|
#return RedirectResponse("https://www.choozmo.com/progress_page")
|
|
|
- return {"https://www.choozmo.com:8888/progress_page"}
|
|
|
- #return {"msg":"製作影片需要時間,請您耐心等候 稍後可以在www.choozmo.com:8168/"+req.name+".mp4 中觀看"}
|
|
|
+ #return {"https://www.choozmo.com:8888/progress_page"}
|
|
|
+ return {"msg":"製作影片需要時間,請您耐心等候 稍後可以在www.choozmo.com:8168/"+req.name+".mp4 中觀看"}
|
|
|
|
|
|
|
|
|
|
|
@@ -735,5 +735,6 @@ def anchor_video_v3(name,text_content, image_urls):
|
|
|
print("video at : www.choozmo.com:8168/"+name_hash+".mp4")
|
|
|
progress = 100
|
|
|
ws.send(str(progress))
|
|
|
+ ws.close()
|
|
|
#line notifs
|
|
|
#notify_group(name+"的影片已經產生完成囉! www.choozmo.com:8168/"+name_hash+".mp4")
|