|
@@ -69,18 +69,16 @@ async def index2():
|
|
|
async def index2():
|
|
|
return FileResponse('style.css')
|
|
|
|
|
|
-@app.post("/qqreq")
|
|
|
-async def qqreq(qq:QQ):
|
|
|
- print(qq.n1)
|
|
|
- print(qq.n2)
|
|
|
- return {"msg":"製作影片需要時間,請您耐心等候"}
|
|
|
-
|
|
|
+@app.get("/progress_page")
|
|
|
+async def progress_page():
|
|
|
+ return FileResponse('progress.html')
|
|
|
|
|
|
@app.post("/make_anchor_video_v2")
|
|
|
async def make_anchor_video_v2(req:request2):
|
|
|
x = threading.Thread(target=anchor_video_v2, args=(req.name, req.text_content, req.image_urls))
|
|
|
x.start()
|
|
|
- return {"msg":"製作影片需要時間,請您耐心等候 稍後可以在www.choozmo.com:8168/"+req.name+".mp4 中觀看"}
|
|
|
+ return RedirectResponse("https://www.choozmo.com/progress_page")
|
|
|
+ #return {"msg":"製作影片需要時間,請您耐心等候 稍後可以在www.choozmo.com:8168/"+req.name+".mp4 中觀看"}
|
|
|
|
|
|
|
|
|
@app.websocket("/progress")
|