michaelj commited on
Commit
91521a3
1 Parent(s): b838176
Files changed (1) hide show
  1. main.py +1 -0
main.py CHANGED
@@ -27,6 +27,7 @@ async def predict(prompt=Body(...),imgbase64data=Body(...)):
27
  start = time.time()
28
  print("参数",imgbase64data,prompt)
29
  image_data = base64.b64decode(imgbase64data)
 
30
  image1 = Image.open(io.BytesIO(image_data))
31
  w, h = image1.size
32
  newW = 512
 
27
  start = time.time()
28
  print("参数",imgbase64data,prompt)
29
  image_data = base64.b64decode(imgbase64data)
30
+ print("本地图:", image_data)
31
  image1 = Image.open(io.BytesIO(image_data))
32
  w, h = image1.size
33
  newW = 512