phyloforfun commited on
Commit
6434d07
·
1 Parent(s): f007322
vouchervision/OCR_google_cloud_vision.py CHANGED
@@ -810,8 +810,6 @@ class SafetyCheck():
810
  return credentials
811
 
812
  def check_for_inappropriate_content(self, file_stream):
813
- self.client = vision.ImageAnnotatorClient()
814
-
815
  content = file_stream.read()
816
  image = vision.Image(content=content)
817
  response = self.client.safe_search_detection(image=image)
 
810
  return credentials
811
 
812
  def check_for_inappropriate_content(self, file_stream):
 
 
813
  content = file_stream.read()
814
  image = vision.Image(content=content)
815
  response = self.client.safe_search_detection(image=image)