hantech commited on
Commit
cfda9d7
Β·
1 Parent(s): ce17998

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ def draw_boxes(image, bounds, color='yellow', width=2):
30
  return image
31
 
32
  def inference(filepath, lang):
33
- img = Image.open(filepath)
34
  reader = easyocr.Reader(lang)
35
  bounds = reader.readtext(filepath)
36
  new_bounds=[]
 
30
  return image
31
 
32
  def inference(filepath, lang):
33
+ img = Image.open(filepath).convert("RGB")
34
  reader = easyocr.Reader(lang)
35
  bounds = reader.readtext(filepath)
36
  new_bounds=[]