glitch0011 commited on
Commit
e010ab9
·
1 Parent(s): 50e8f91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -6,10 +6,11 @@ from ipymarkup import format_span_box_markup
6
  model = pipeline("ner", model="/home/user/app/mendobert/", tokenizer="indolem/indobert-base-uncased")
7
  basemodel = pipeline("ner", model="/home/user/app/base-model/", tokenizer="indolem/indobert-base-uncased")
8
 
9
- example1 = st.button('Aspartylglucosaminuria (AGU) adalah gangguan metabolisme glikoprotein langka.')
10
- example2 = st.button('Mutasi germ - line dari gen BRCA1 membuat wanita cenderung mengalami kanker payudara dini dengan mengorbankan fungsi presumtif gen sebagai penekan tumor.')
11
 
12
  st.title(':blue[MendoBERT] - Named Entity Recognition Model :sunglasses:')
 
 
 
13
  if example1:
14
  text = st.text_area('Enter some text: ', 'Aspartylglucosaminuria (AGU) adalah gangguan metabolisme glikoprotein langka.')
15
  elif example2:
@@ -94,11 +95,11 @@ if text:
94
  formatBase = format_span_box_markup(text, spanBase)
95
  htmlBase = ''.join(formatBase)
96
 
97
- st.divider
98
  st.subheader('MendoBERT')
99
  st.json(mendo)
100
  st.markdown(htmlMendo,unsafe_allow_html=True)
101
- st.divider
102
  st.subheader('IndoLEM')
103
  st.json(base)
104
  st.markdown(htmlBase,unsafe_allow_html=True)
 
6
  model = pipeline("ner", model="/home/user/app/mendobert/", tokenizer="indolem/indobert-base-uncased")
7
  basemodel = pipeline("ner", model="/home/user/app/base-model/", tokenizer="indolem/indobert-base-uncased")
8
 
 
 
9
 
10
  st.title(':blue[MendoBERT] - Named Entity Recognition Model :sunglasses:')
11
+ with st.container():
12
+ example1 = st.button('Aspartylglucosaminuria (AGU) adalah gangguan metabolisme glikoprotein langka.', use_container_width=True)
13
+ example2 = st.button('Mutasi germ - line dari gen BRCA1 membuat wanita cenderung mengalami kanker payudara dini dengan mengorbankan fungsi presumtif gen sebagai penekan tumor.', use_container_width=True)
14
  if example1:
15
  text = st.text_area('Enter some text: ', 'Aspartylglucosaminuria (AGU) adalah gangguan metabolisme glikoprotein langka.')
16
  elif example2:
 
95
  formatBase = format_span_box_markup(text, spanBase)
96
  htmlBase = ''.join(formatBase)
97
 
98
+ st.divider()
99
  st.subheader('MendoBERT')
100
  st.json(mendo)
101
  st.markdown(htmlMendo,unsafe_allow_html=True)
102
+ st.divider()
103
  st.subheader('IndoLEM')
104
  st.json(base)
105
  st.markdown(htmlBase,unsafe_allow_html=True)