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