Spaces:
Runtime error
Runtime error
Update app.py
Browse files24 unmodified lines252627282930313224 unmodified linesprint(lang)reader = easyocr.Reader(lang, gpu=False)print('reader created')bounds = reader.readtext(img.name)print('recognized')im = PIL.Image.open(img.name)print('start bb')draw_boxes(im, bounds)24 unmodified lines2526272829303132333435363724 unmodified linesprint(lang)reader = easyocr.Reader(lang, gpu=False)print('reader created')try:bounds = reader.readtext(img.name)except:import tracebacktraceback.print_exc()print('recognized')print(bounds)im = PIL.Image.open(img.name)print('start bb')draw_boxes(im, bounds)
app.py+6-1