kirchik47 commited on
Commit
ffb2044
·
1 Parent(s): 383f177

Added check for search query

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -34,5 +34,6 @@ if uploaded_image is not None:
34
 
35
  # Search functionality
36
  search_query = st.text_input("Enter a keyword to search within the text")
37
- st.markdown(highlight_keywords(extracted_text, search_query), unsafe_allow_html=True)
 
38
 
 
34
 
35
  # Search functionality
36
  search_query = st.text_input("Enter a keyword to search within the text")
37
+ if search_query:
38
+ st.markdown(highlight_keywords(extracted_text, search_query), unsafe_allow_html=True)
39