Yaron Koresh commited on
Commit
1142cdf
·
verified ·
1 Parent(s): 43f45da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -206,7 +206,7 @@ def pipe_generate(img,p1,p2,motion,time,title):
206
  ).images[0]
207
 
208
  if title != "":
209
- draw = ImageDraw.Draw(pipe_out)
210
  textheight=84
211
  font = ImageFont.truetype(r"OpenSans-Bold.ttf", textheight)
212
  textwidth = draw.textlength(title,font)
 
206
  ).images[0]
207
 
208
  if title != "":
209
+ draw = ImageDraw.Draw(img)
210
  textheight=84
211
  font = ImageFont.truetype(r"OpenSans-Bold.ttf", textheight)
212
  textwidth = draw.textlength(title,font)