pragnakalp commited on
Commit
e128c00
1 Parent(s): 23df7db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,6 @@ def ocr_with_paddle(img):
48
  """
49
  Keras OCR
50
  """
51
- @spaces.GPU
52
  def ocr_with_keras(img):
53
  output_text = ''
54
  pipeline=keras_ocr.pipeline.Pipeline()
@@ -87,6 +86,7 @@ def generate_ocr(Method,img):
87
 
88
  text_output = ''
89
  print("\n\n img :",img.any())
 
90
  if img.any() or (img).any():
91
  add_csv = []
92
  image_id = 1
 
48
  """
49
  Keras OCR
50
  """
 
51
  def ocr_with_keras(img):
52
  output_text = ''
53
  pipeline=keras_ocr.pipeline.Pipeline()
 
86
 
87
  text_output = ''
88
  print("\n\n img :",img.any())
89
+ print("\n\n img.any :",(img).any())
90
  if img.any() or (img).any():
91
  add_csv = []
92
  image_id = 1