Spaces:
Build error
Build error
Make a copy
Browse files23 unmodified lines2425262728293023 unmodified linesdef predict(image: Image.Image, question: str, ocr_engine: str):image_np = np.asarray(image)if ocr_engine == PADDLE_OCR_LABEL:ocr_result = OCR.ocr(image_np)[0]23 unmodified lines2425262728293023 unmodified linesdef predict(image: Image.Image, question: str, ocr_engine: str):image_np = np.array(image)if ocr_engine == PADDLE_OCR_LABEL:ocr_result = OCR.ocr(image_np)[0]
app.py+1-1