Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ def text_to_image(
|
|
| 61 |
width = math.ceil(bbox[2] - bbox[0])
|
| 62 |
height = math.ceil(bbox[3] - bbox[1])
|
| 63 |
|
| 64 |
-
img = Image.new("RGBA", (
|
| 65 |
draw = ImageDraw.Draw(img)
|
| 66 |
|
| 67 |
if font_align == "center":
|
|
|
|
| 61 |
width = math.ceil(bbox[2] - bbox[0])
|
| 62 |
height = math.ceil(bbox[3] - bbox[1])
|
| 63 |
|
| 64 |
+
img = Image.new("RGBA", (1000, 500), (0, 0, 0, 0))
|
| 65 |
draw = ImageDraw.Draw(img)
|
| 66 |
|
| 67 |
if font_align == "center":
|