Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,7 +55,7 @@ def highlight_text(text, search_term):
|
|
| 55 |
if not search_term:
|
| 56 |
return text
|
| 57 |
pattern = re.compile(re.escape(search_term), re.IGNORECASE)
|
| 58 |
-
return pattern.sub(lambda m: f'<span style="background-color:
|
| 59 |
|
| 60 |
# Streamlit App
|
| 61 |
st.title("GOT-OCR Multilingual Demo")
|
|
|
|
| 55 |
if not search_term:
|
| 56 |
return text
|
| 57 |
pattern = re.compile(re.escape(search_term), re.IGNORECASE)
|
| 58 |
+
return pattern.sub(lambda m: f'<span style="background-color: red;">{m.group()}</span>', text)
|
| 59 |
|
| 60 |
# Streamlit App
|
| 61 |
st.title("GOT-OCR Multilingual Demo")
|