Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -463,7 +463,7 @@ def share(title, editor, cover_art):
|
|
| 463 |
dataset = load_dataset("chansung/llama2-stories")
|
| 464 |
|
| 465 |
buffered = io.BytesIO()
|
| 466 |
-
|
| 467 |
cover_art.save(buffered, format="PNG")
|
| 468 |
img_str = base64.b64encode(buffered.read())
|
| 469 |
|
|
|
|
| 463 |
dataset = load_dataset("chansung/llama2-stories")
|
| 464 |
|
| 465 |
buffered = io.BytesIO()
|
| 466 |
+
cover_art = Image.fromarray(cover_art.astype('uint8'))
|
| 467 |
cover_art.save(buffered, format="PNG")
|
| 468 |
img_str = base64.b64encode(buffered.read())
|
| 469 |
|