Yaron Koresh commited on
Commit
74ad25f
·
verified ·
1 Parent(s): 06bf2db

Update app.py

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