Browse Source

add http prefix at swapFace

ming 3 years ago
parent
commit
b8e231f8c9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      api/main.py

+ 1 - 0
api/main.py

@@ -93,6 +93,7 @@ async def swapFace(req:swap_req):
         im= im.convert("RGB")
     except:
         return {'msg':"無法辨別圖片網址"+req.imgurl}
+    name_hash = str(time.time()).replace('.','')
     x = threading.Thread(target=gen_avatar, args=(name_hash,req.imgurl))
     x.start()
     return '人物生成中,請稍候'