Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ def run(image):
|
|
8 |
raise gr.Error('No input image')
|
9 |
|
10 |
buffer = BytesIO()
|
11 |
-
|
12 |
img_str = base64.b64encode(buffer.getvalue()).decode("utf-8")
|
13 |
return img_str
|
14 |
|
|
|
8 |
raise gr.Error('No input image')
|
9 |
|
10 |
buffer = BytesIO()
|
11 |
+
image.save(buffer, format='PNG')
|
12 |
img_str = base64.b64encode(buffer.getvalue()).decode("utf-8")
|
13 |
return img_str
|
14 |
|