Omnibus commited on
Commit
42dae28
·
verified ·
1 Parent(s): dc480ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -435,7 +435,7 @@ def create_image(url):
435
  encoded_image = base64.b64encode(f.read())
436
  #bytestring=open('tmp.svg').read().encode('utf-8')
437
  with open("image.png","wb") as file:
438
- file.write(eval(bytestring))
439
  #output = cairosvg.svg2png(
440
  # bytestring=open('tmp.svg').read().encode('utf-8'), write_to="output.png")
441
  return "image.png"
 
435
  encoded_image = base64.b64encode(f.read())
436
  #bytestring=open('tmp.svg').read().encode('utf-8')
437
  with open("image.png","wb") as file:
438
+ file.write(eval(encoded_image))
439
  #output = cairosvg.svg2png(
440
  # bytestring=open('tmp.svg').read().encode('utf-8'), write_to="output.png")
441
  return "image.png"