Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def main():
|
|
21 |
img_href = "data:image/png;base64," + img_data.hex()
|
22 |
st.write(f'<img src="{img_href}">', unsafe_allow_html=True)
|
23 |
card_svg = draw_card(card_width, card_height, img_href)
|
24 |
-
svg_content = '<?xml version="1.0" encoding="utf-8" ?>' + card_svg
|
25 |
st.download_button("Download Card as SVG", svg_content, "card.svg", "text/plain")
|
26 |
else:
|
27 |
st.warning("Please upload a card background image")
|
|
|
21 |
img_href = "data:image/png;base64," + img_data.hex()
|
22 |
st.write(f'<img src="{img_href}">', unsafe_allow_html=True)
|
23 |
card_svg = draw_card(card_width, card_height, img_href)
|
24 |
+
svg_content = '<?xml version="1.0" encoding="utf-8" ?>' + card_svg
|
25 |
st.download_button("Download Card as SVG", svg_content, "card.svg", "text/plain")
|
26 |
else:
|
27 |
st.warning("Please upload a card background image")
|