Added check for search query
Browse files
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 |
-
|
|
|
|
| 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 |
|