WebashalarForML commited on
Commit
3e3583b
1 Parent(s): 9e0aae2

Update utility/utils.py

Browse files
Files changed (1) hide show
  1. utility/utils.py +0 -4
utility/utils.py CHANGED
@@ -5,7 +5,6 @@ from dotenv import load_dotenv
5
  import json
6
  import re
7
  import easyocr
8
- import spacy
9
  from PIL import Image, ImageEnhance, ImageDraw
10
  import cv2
11
  import numpy as np
@@ -23,9 +22,6 @@ client = InferenceClient(model="mistralai/Mistral-7B-Instruct-v0.3", token=HFT)
23
  # Initialize EasyOCR reader for extracting text
24
  reader = easyocr.Reader(['en'])
25
 
26
- # Initialize spaCy's English model
27
- nlp = spacy.load("en_core_web_sm")
28
-
29
  def draw_boxes(image, bounds, color='red', width=2):
30
  draw = ImageDraw.Draw(image)
31
  for bound in bounds:
 
5
  import json
6
  import re
7
  import easyocr
 
8
  from PIL import Image, ImageEnhance, ImageDraw
9
  import cv2
10
  import numpy as np
 
22
  # Initialize EasyOCR reader for extracting text
23
  reader = easyocr.Reader(['en'])
24
 
 
 
 
25
  def draw_boxes(image, bounds, color='red', width=2):
26
  draw = ImageDraw.Draw(image)
27
  for bound in bounds: