pragnakalp commited on
Commit
fbf7563
1 Parent(s): 619d141

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ print("\n\n Num GPUs Available: ", len(tf.config.experimental.list_physical_devi
46
  def ocr_with_keras(img):
47
  print("\n\n inside Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU')))
48
  output_text = ''
49
- pipeline=keras_ocr.pipeline.Pipeline().to_device()
50
  images=[keras_ocr.tools.read(img)]
51
  predictions=pipeline.recognize(images)
52
  first=predictions[0]
 
46
  def ocr_with_keras(img):
47
  print("\n\n inside Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU')))
48
  output_text = ''
49
+ pipeline=keras_ocr.pipeline.Pipeline()
50
  images=[keras_ocr.tools.read(img)]
51
  predictions=pipeline.recognize(images)
52
  first=predictions[0]