From 594a8125c2a3356779603596b963a91ab4f811a2 Mon Sep 17 00:00:00 2001 From: loonyx8 <66733801+loonyx8@users.noreply.github.com> Date: Sun, 21 Jan 2024 15:27:47 +0800 Subject: [PATCH] Update streamlit_app.py --- streamlit_app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/streamlit_app.py b/streamlit_app.py index 785e491b8ffe..be77892f8acb 100644 --- a/streamlit_app.py +++ b/streamlit_app.py @@ -30,7 +30,7 @@ on_bp_meds = st.checkbox("Are you taking blood pressure medication?") systolic_bp = st.number_input("Enter your last recorded systolic blood pressure (leave blank if not available)", min_value=50,max_value=300,value=None) -image = load_image(ocr_model) +image = load_image() if st.button('Analyse my results'): # Save test attributes @@ -49,7 +49,7 @@ st.error("Upload an image of your test results first!",icon="🚨") else: # Image uploaded ocr_start_time = time.time() - extracted_text = extract_text(image) + extracted_text = extract_text(image,ocr_model) ocr_end_time = time.time() ocr_time = int(ocr_end_time - ocr_start_time) st.markdown(extracted_text)