Spaces:
Build error
Build error
Update app.py
Browse files103 unmodified lines1041051061071081091101111121131141151165 unmodified lines122123124125126127128103 unmodified linesadd_csv = []image_id = 1print("Method___________________",Method)if Method == 'EasyOCR':text_output = ocr_with_easy(img)if Method == 'KerasOCR':text_output = ocr_with_keras(img)if Method == 'PaddleOCR':text_output = ocr_with_paddle(img)if Method == 'tesseract':text_output = process("img", img, "fas")return text_output5 unmodified lines# image = gr.Image(shape=(300, 300))# image = gr.File(label="Upload PDF/Image")image = gr.Image()method = gr.Radio(["PaddleOCR","EasyOCR", "tesseract"],value="PaddleOCR")output = gr.Textbox(label="Output")demo = gr.Interface(103 unmodified lines1041051061071081091101111121131141151165 unmodified lines122123124125126127128103 unmodified linesadd_csv = []image_id = 1print("Method___________________",Method)if Method == 'Version2':text_output = ocr_with_easy(img)if Method == 'KerasOCR':text_output = ocr_with_keras(img)if Method == 'Version1':text_output = ocr_with_paddle(img)if Method == 'Version3':text_output = process("img", img, "fas")return text_output5 unmodified lines# image = gr.Image(shape=(300, 300))# image = gr.File(label="Upload PDF/Image")image = gr.Image()method = gr.Radio(["Version1","Version2", "Version3"],value="PaddleOCR")output = gr.Textbox(label="Output")demo = gr.Interface(
app.py+4-4