Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
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(
|
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)
|