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 cfd4a93 commit 6d86eb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion streamlit_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
else: # Image uploaded
with st.status('Reading image...', expanded=True) as status:
st.json(test_attributes)
extracted_text = extract_text(image,ocr_model,ocr_time)
extracted_text,ocr_time = extract_text(image,ocr_model)
st.markdown(extracted_text)
st.success(f"Processed image in {ocr_time} seconds.") # Use status instead of toast/success
# Remove NRIC from extracted text
Expand Down

0 comments on commit 6d86eb1

Please sign in to comment.