Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -243,7 +243,7 @@ def handle_generate(*_inp):
|
|
243 |
draw = ImageDraw.Draw(pipe_out)
|
244 |
textheight=32
|
245 |
font = ImageFont.truetype(r"OpenSans-Bold.ttf", textheight)
|
246 |
-
textwidth = draw.textlength(inp[5])
|
247 |
x = (width - textwidth) // 2
|
248 |
y = (height - textheight) // 2
|
249 |
draw.text((x, y), inp[5],font=font)
|
|
|
243 |
draw = ImageDraw.Draw(pipe_out)
|
244 |
textheight=32
|
245 |
font = ImageFont.truetype(r"OpenSans-Bold.ttf", textheight)
|
246 |
+
textwidth = draw.textlength(inp[5],font)
|
247 |
x = (width - textwidth) // 2
|
248 |
y = (height - textheight) // 2
|
249 |
draw.text((x, y), inp[5],font=font)
|