Spaces:
Runtime error
Runtime error
add
Browse files
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 |
-
|
| 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 |
|