Spaces:
Runtime error
Runtime error
fix
Browse files
main.py
CHANGED
|
@@ -52,7 +52,7 @@ async def predict(prompt=Body(...),imgbase64data=Body(...)):
|
|
| 52 |
# 将图片对象转换为bytes
|
| 53 |
output_image_base64 = base64.b64encode(output_image.tobytes()).decode()
|
| 54 |
fullbase="data:image/jpeg;base64,"+output_image_base64
|
| 55 |
-
print("完成的图片:",
|
| 56 |
return output_image_base64
|
| 57 |
|
| 58 |
|
|
|
|
| 52 |
# 将图片对象转换为bytes
|
| 53 |
output_image_base64 = base64.b64encode(output_image.tobytes()).decode()
|
| 54 |
fullbase="data:image/jpeg;base64,"+output_image_base64
|
| 55 |
+
print("完成的图片:", fullbase)
|
| 56 |
return output_image_base64
|
| 57 |
|
| 58 |
|