Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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()
|
| 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]
|