awacke1 commited on
Commit
b789f53
·
1 Parent(s): 3de7286

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.decode("utf-8")
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")