Pash1986 commited on
Commit
133c5a0
·
verified ·
1 Parent(s): a3f65fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -390,8 +390,9 @@ def generate_qr_code(filename):
390
  img_byte_arr = io.BytesIO()
391
  img_qr.save(img_byte_arr, format='PNG')
392
  img_byte_arr = img_byte_arr.getvalue()
 
393
 
394
- return img_byte_arr
395
 
396
 
397
  with gr.Blocks() as demo:
 
390
  img_byte_arr = io.BytesIO()
391
  img_qr.save(img_byte_arr, format='PNG')
392
  img_byte_arr = img_byte_arr.getvalue()
393
+ image = Image.open(io.BytesIO(img_byte_arr))
394
 
395
+ return image
396
 
397
 
398
  with gr.Blocks() as demo: