omkar-surve126 commited on
Commit
5b95899
1 Parent(s): 7dd0ab4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -77,7 +77,7 @@ def highlight_text(text, search_term):
77
  if not search_term:
78
  return text
79
  pattern = re.compile(re.escape(search_term), re.IGNORECASE)
80
- return pattern.sub(lambda m: f'<span style="background-color: yellow;">{m.group()}</span>', text)
81
 
82
  st.title("Image To Text")
83
  st.write("Upload an image")
 
77
  if not search_term:
78
  return text
79
  pattern = re.compile(re.escape(search_term), re.IGNORECASE)
80
+ return pattern.sub(lambda m: f'<span style="background-color: green;">{m.group()}</span>', text)
81
 
82
  st.title("Image To Text")
83
  st.write("Upload an image")