Spaces:
Runtime error
Runtime error
Update app.py
Browse files19 unmodified lines202122232425262716 unmodified lines44454647484919 unmodified lines# main titlest.title("Recognize text and locations from flowchart")# subtitlest.markdown("## FlowchartOCR")# upload image filefile = st.file_uploader(label = "Upload Image", type=['png', 'jpg', 'jpeg'])16 unmodified linespred_confidence = result[idx][2]if(pred_confidence>0.6):textdic_easyocr[pred_text] = {}textdic_easyocr[pred_text]['pred_confidence'] = pred_confidence# create a data frame which shows the predicted text and prediction confidence19 unmodified lines202122232425262716 unmodified lines4445464748495019 unmodified lines# main titlest.title("Recognize text and locations from flowchart")# # subtitle# st.markdown("## FlowchartOCR")# upload image filefile = st.file_uploader(label = "Upload Image", type=['png', 'jpg', 'jpeg'])16 unmodified linespred_confidence = result[idx][2]if(pred_confidence>0.6):textdic_easyocr[pred_text] = {}textdic_easyocr[pred_text]['location'] = pred_coortextdic_easyocr[pred_text]['pred_confidence'] = pred_confidence# create a data frame which shows the predicted text and prediction confidence
app.py+3-2