Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -435,7 +435,8 @@ 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(encoded_image))
|
|
|
|
| 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 |
+
file.write(encoded_image)
|
| 440 |
#output = cairosvg.svg2png(
|
| 441 |
# bytestring=open('tmp.svg').read().encode('utf-8'), write_to="output.png")
|
| 442 |
return "image.png"
|