rogerxavier commited on
Commit
42de2d8
1 Parent(s): 2fe55e2

Update 1removeMask.py

Browse files
Files changed (1) hide show
  1. 1removeMask.py +3 -4
1removeMask.py CHANGED
@@ -116,6 +116,7 @@
116
 
117
 
118
 
 
119
  import base64
120
  import requests
121
  import os
@@ -167,8 +168,8 @@ class FakeArgs(BaseModel):
167
 
168
  def inpaint(img_path: str, mask_path: str) -> "img content (resp.content)":
169
  # urllib3 1.26.4 兼容
170
- image_bytes = open('image.jpg', 'rb')
171
- mask_bytes = open('mask.jpg', 'rb')
172
  # 将字节数据转换为Base64编码的字符串
173
 
174
  files = {
@@ -271,5 +272,3 @@ if __name__ == '__main__':
271
 
272
 
273
 
274
-
275
-
 
116
 
117
 
118
 
119
+
120
  import base64
121
  import requests
122
  import os
 
168
 
169
  def inpaint(img_path: str, mask_path: str) -> "img content (resp.content)":
170
  # urllib3 1.26.4 兼容
171
+ image_bytes = open(img_path, 'rb')
172
+ mask_bytes = open(mask_path, 'rb')
173
  # 将字节数据转换为Base64编码的字符串
174
 
175
  files = {
 
272
 
273
 
274