Skip to content

Commit

Permalink
Update streamlit_app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
salmon-raye committed Jan 21, 2024
1 parent a9f7683 commit 594a812
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions streamlit_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 594a812

Please sign in to comment.