krushna commited on
Commit
68260b0
·
1 Parent(s): 0fed80e

int to float font size

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,9 +34,9 @@ def predict(action,image, text_in_image, words_line, font, model, url_or_text, p
34
  for i in text_in_image.split("\n"):
35
  image = ps.putBText(image, i, text_offset_x = int(x_cor),
36
  text_offset_y = int(y_cor)+y_gap, vspace = 5,
37
- hspace = 5, font_scale = int(font_size), font = font_dict[font],
38
  background_RGB = ast.literal_eval(backgound_RGB),
39
- text_RGB = ast.literal_eval(text_RGB), thickness = int(thickness),
40
  alpha = float(opacity))
41
  y_gap+= int(line_space)
42
  return image
 
34
  for i in text_in_image.split("\n"):
35
  image = ps.putBText(image, i, text_offset_x = int(x_cor),
36
  text_offset_y = int(y_cor)+y_gap, vspace = 5,
37
+ hspace = 5, font_scale = float(font_size), font = font_dict[font],
38
  background_RGB = ast.literal_eval(backgound_RGB),
39
+ text_RGB = ast.literal_eval(text_RGB), thickness = float(thickness),
40
  alpha = float(opacity))
41
  y_gap+= int(line_space)
42
  return image