|
@@ -18,7 +18,7 @@ class swap_face():
|
|
|
except:
|
|
|
return '圖片錯誤'
|
|
|
|
|
|
- x = threading.Thread(target=runthreadswap, args=(src_img,sv_path)))
|
|
|
+ x = threading.Thread(target=runthreadswap, args=(src_img,sv_path))
|
|
|
x.start()
|
|
|
|
|
|
return '生成中請稍候'
|
|
@@ -31,7 +31,7 @@ class swap_face():
|
|
|
time.sleep(5)
|
|
|
print('waiting...')
|
|
|
notify_group('成功,影片在:www.choozmo.com:8168/swap_save/'+name_hash+'.avi')
|
|
|
-
|
|
|
+
|
|
|
def notify_group(self,msg):
|
|
|
headers = {
|
|
|
"Authorization": "Bearer " + "WekCRfnAirSiSxALiD6gcm0B56EejsoK89zFbIaiZQD",
|