Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -464,8 +464,8 @@ def share(title, editor, cover_art):
|
|
464 |
|
465 |
buffered = io.BytesIO()
|
466 |
cover_art = Image.fromarray(cover_art.astype('uint8'))
|
467 |
-
cover_art.save(buffered, format="
|
468 |
-
img_str = base64.b64encode(buffered.
|
469 |
|
470 |
dataset['train'] = dataset['train'].add_item({
|
471 |
'title': title,
|
@@ -475,9 +475,7 @@ def share(title, editor, cover_art):
|
|
475 |
|
476 |
dataset.push_to_hub("chansung/llama2-stories", token=TOKEN)
|
477 |
|
478 |
-
return
|
479 |
-
" "
|
480 |
-
]
|
481 |
|
482 |
with gr.Blocks(css=STYLES) as demo:
|
483 |
|
|
|
464 |
|
465 |
buffered = io.BytesIO()
|
466 |
cover_art = Image.fromarray(cover_art.astype('uint8'))
|
467 |
+
cover_art.save(buffered, format="JPEG")
|
468 |
+
img_str = base64.b64encode(buffered.getvalue())
|
469 |
|
470 |
dataset['train'] = dataset['train'].add_item({
|
471 |
'title': title,
|
|
|
475 |
|
476 |
dataset.push_to_hub("chansung/llama2-stories", token=TOKEN)
|
477 |
|
478 |
+
return " "
|
|
|
|
|
479 |
|
480 |
with gr.Blocks(css=STYLES) as demo:
|
481 |
|