chansung commited on
Commit
b7908eb
·
1 Parent(s): e749788

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
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="PNG")
468
- img_str = base64.b64encode(buffered.read())
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