saritha5 commited on
Commit
2fff9d3
·
1 Parent(s): 7632f29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -9
app.py CHANGED
@@ -10,14 +10,8 @@ raw_text="The Indian Space Research Organisation or is the national space agency
10
  text1= NER(raw_text)
11
 
12
  for word in text1.ents:
13
- st.write(word.text,word.label_)
 
14
 
15
- import local_css
16
-
17
- local_css("style.css")
18
-
19
- t = "<div>raw_text <span class='highlight blue'>word.text <span class='bold'>yo</span> <span class='bold'>Name</span></span></div>"
20
-
21
- st.write(t, unsafe_allow_html=True)
22
- #st. write(displacy.render(text1,style="ent",jupyter=True))
23
 
 
10
  text1= NER(raw_text)
11
 
12
  for word in text1.ents:
13
+ raw_text = raw_text.replace(word,<b style='color:orange'>" + k + "</b>")
14
+ raw_text = raw_replace("\n","<br>")
15
 
16
+ st.markdown(raw_text)
 
 
 
 
 
 
 
17