浏览代码

add http prefix at swapFace

ming 3 年之前
父节点
当前提交
907362a2e6
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      api/main.py
  2. 1 0
      fswap

+ 1 - 1
api/main.py

@@ -86,7 +86,7 @@ async def swapFace(req:swap_req):
     result = sf.run()
     #notify_group(result)hi
     '''
-    if 'http' not in req.imgrul:
+    if 'http' not in req.imgurl:
         req.imgurl= 'http://'+req.imgurl
     try:
         im = Image.open(requests.get(req.imgurl, stream=True).raw)

+ 1 - 0
fswap

@@ -0,0 +1 @@
+Subproject commit f232217bb10af01fda800cf95fd72cf1f37659f0