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