Omnibus commited on
Commit
722a0b0
Β·
1 Parent(s): 392d2e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -209,7 +209,7 @@ def blur_im(img,bounds,target_lang,trans_lang):
209
 
210
  bw, bh = (w,h)
211
  tw, th = draw.textsize(text)
212
- draw.text((x,(y-(bh-th)/2)), text, font=font, fill="red")
213
 
214
  draw.text((x, y),text, font = font, fill=(0,0,0))
215
  else:
 
209
 
210
  bw, bh = (w,h)
211
  tw, th = draw.textsize(text)
212
+ draw.text((x-(bw-tw)/2),y), text, font=font, fill="red")
213
 
214
  draw.text((x, y),text, font = font, fill=(0,0,0))
215
  else: