Update app.py
Browse files
app.py
CHANGED
|
@@ -50,7 +50,7 @@ Generate the correct code, ensure it is free from construct error and this kind
|
|
| 50 |
cairosvg.svg2png(bytestring=full_svg_code.encode('utf-8'), write_to=png_filename)
|
| 51 |
|
| 52 |
# Return the PNG for display, the PNG file for download, and the SVG code for editing later.
|
| 53 |
-
return
|
| 54 |
|
| 55 |
def update_svg(modified_svg_code):
|
| 56 |
# Save the modified SVG code to the file
|
|
|
|
| 50 |
cairosvg.svg2png(bytestring=full_svg_code.encode('utf-8'), write_to=png_filename)
|
| 51 |
|
| 52 |
# Return the PNG for display, the PNG file for download, and the SVG code for editing later.
|
| 53 |
+
return full_svg_code, png_filename, full_svg_code
|
| 54 |
|
| 55 |
def update_svg(modified_svg_code):
|
| 56 |
# Save the modified SVG code to the file
|