michaelj commited on
Commit
71c1378
1 Parent(s): 91521a3
Files changed (1) hide show
  1. main.py +1 -2
main.py CHANGED
@@ -52,8 +52,7 @@ async def predict(prompt=Body(...),imgbase64data=Body(...)):
52
  print("s生成完成:", end2 - end1)
53
  # 将图片对象转换为bytes
54
  output_image_base64 = base64.b64encode(output_image.tobytes()).decode()
55
- fullbase="data:image/jpeg;base64,"+output_image_base64
56
- print("完成的图片:", fullbase)
57
  return output_image_base64
58
 
59
 
 
52
  print("s生成完成:", end2 - end1)
53
  # 将图片对象转换为bytes
54
  output_image_base64 = base64.b64encode(output_image.tobytes()).decode()
55
+ print("完成的图片:", output_image_base64)
 
56
  return output_image_base64
57
 
58