SohomToom commited on
Commit
9e56823
·
verified ·
1 Parent(s): f54c597

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -10,7 +10,8 @@ import psutil
10
  import time
11
  #import spaces
12
 
13
- ocr = PaddleOCR(use_angle_cls=True, lang='en', det_model_dir='models/det', rec_model_dir='models/rec', cls_model_dir='models/cls')
 
14
 
15
  def classify_background_color(avg_color, white_thresh=230, black_thresh=50, yellow_thresh=100):
16
  r, g, b = avg_color
 
10
  import time
11
  #import spaces
12
 
13
+ #ocr = PaddleOCR(use_angle_cls=True, lang='en', det_model_dir='models/det', rec_model_dir='models/rec', cls_model_dir='models/cls')
14
+ ocr = PaddleOCR(use_angle_cls=True, lang='en', det_model_dir='models/det', rec_model_dir='models/rec')
15
 
16
  def classify_background_color(avg_color, white_thresh=230, black_thresh=50, yellow_thresh=100):
17
  r, g, b = avg_color