rogerxavier commited on
Commit
4df08f9
1 Parent(s): bd66be8

Update 1removeMask.py

Browse files
Files changed (1) hide show
  1. 1removeMask.py +4 -3
1removeMask.py CHANGED
@@ -52,9 +52,10 @@ def inpaint(img_path:str,mask_path:str)->"img content (resp.content)":
52
  }#payload用data
53
 
54
  #不使用header
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 clenaer状态是",resp.status_code)
59
  return bytes(resp.content)
60
 
 
52
  }#payload用data
53
 
54
  #不使用header
55
+ #resp = requests.post("https://sanster-lama-cleaner-lama.hf.space/inpaint", data=payload, files=files)
56
+ #使用自己的space
57
+ resp = requests.post("https://rogerxavier-lama-cleaner-lama.hf.space/inpaint", data=payload, files=files)
58
+
59
  print("请求lama clenaer状态是",resp.status_code)
60
  return bytes(resp.content)
61