Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -78,8 +78,8 @@ def draw_card(background, suit, value, level, card_width, card_height):
|
|
78 |
|
79 |
# Resize and add image to SVG
|
80 |
image = image.resize((card_width, card_height))
|
81 |
-
image.save(
|
82 |
-
img = svgwrite.image.Image(href=
|
83 |
dwg.add(img)
|
84 |
|
85 |
# Add suit and value labels
|
|
|
78 |
|
79 |
# Resize and add image to SVG
|
80 |
image = image.resize((card_width, card_height))
|
81 |
+
image.save(background)
|
82 |
+
img = svgwrite.image.Image(href=background, size=(f"{card_width}px", f"{card_height}px"))
|
83 |
dwg.add(img)
|
84 |
|
85 |
# Add suit and value labels
|