Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -7,6 +7,9 @@ import io
|
|
| 7 |
|
| 8 |
def answer(input_img, selected):
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
buffer = io.BytesIO()
|
| 11 |
input_img.save(buffer, format="PNG")
|
| 12 |
image_data = base64.b64encode(buffer.getvalue()).decode('utf-8')
|
|
|
|
| 7 |
|
| 8 |
def answer(input_img, selected):
|
| 9 |
|
| 10 |
+
print(input_img)
|
| 11 |
+
print(selected)
|
| 12 |
+
|
| 13 |
buffer = io.BytesIO()
|
| 14 |
input_img.save(buffer, format="PNG")
|
| 15 |
image_data = base64.b64encode(buffer.getvalue()).decode('utf-8')
|