rogerxavier
commited on
Commit
•
f10e1e6
1
Parent(s):
ae81b19
Update 1removeMask.py
Browse files- 1removeMask.py +1 -0
1removeMask.py
CHANGED
@@ -55,6 +55,7 @@ def inpaint(img_path:str,mask_path:str)->"img content (resp.content)":
|
|
55 |
|
56 |
# resp = requests.post("https://sanster-lama-cleaner-lama.hf.space/inpaint",data= payload,files=files)##huggingface版本
|
57 |
resp = requests.post("https://sanster-lama-cleaner-lama.hf.space/inpaint", data=payload, files=files)
|
|
|
58 |
return resp.content
|
59 |
|
60 |
def save_img(img_content:"要处理的图片数据",new_save_path:"新文件的保存路径(包含后缀)",old_img_path:"旧文件路径")->"void生成新的文件保存 ,传入旧文件路径是为了删除有问题的旧文件":
|
|
|
55 |
|
56 |
# resp = requests.post("https://sanster-lama-cleaner-lama.hf.space/inpaint",data= payload,files=files)##huggingface版本
|
57 |
resp = requests.post("https://sanster-lama-cleaner-lama.hf.space/inpaint", data=payload, files=files)
|
58 |
+
print("lama去水印请求结果是",resp.text)
|
59 |
return resp.content
|
60 |
|
61 |
def save_img(img_content:"要处理的图片数据",new_save_path:"新文件的保存路径(包含后缀)",old_img_path:"旧文件路径")->"void生成新的文件保存 ,传入旧文件路径是为了删除有问题的旧文件":
|