vishnun commited on
Commit
9c2a796
·
1 Parent(s): cee8178

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -41,10 +41,10 @@ if submit:
41
  st.success(out_text)
42
 
43
  c_text = " "
44
- for x in input_text.split(" "):
45
- if x in out_text.split(" "):
46
- c_text = c_text + x
47
  else:
48
- c_text = c_text + """<p style="color:rgb(0,255,0);">""" + x + """</p>"""
49
 
50
  st.markdown(c_text)
 
41
  st.success(out_text)
42
 
43
  c_text = " "
44
+ for x in out_text.split(" "):
45
+ if x in input_text.split(" "):
46
+ c_text = c_text + x + " "
47
  else:
48
+ c_text = c_text + """<p style="color:rgb(0,255,0);">""" + x + """</p>""" + " "
49
 
50
  st.markdown(c_text)