NikosKprl commited on
Commit
9125740
·
verified ·
1 Parent(s): cab82ce

Update ✨Entity Linking Application✨.py

Browse files
✨Entity Linking Application✨.py CHANGED
@@ -270,7 +270,7 @@ def main_cli():
270
  st.title("✨ Entity Linking Application ✨")
271
  st.caption("This web application is part of my master’s dissertation.")
272
 
273
- if 'disabled' in st.session_state and st.session_state.run_button == True:
274
  st.session_state.running = True
275
  else:
276
  st.session_state.running = False
@@ -294,7 +294,7 @@ def main_cli():
294
  combi = st.selectbox("Make combinations of each word? (Useful for difficult mentions)", ['Yes', 'No'], index=1, disabled=st.session_state.running)
295
  disambi = st.selectbox("Run acronym disambiguation? (Enable it if the mention include an acronym or if it is nested)", ['Yes', 'No'], index=0, disabled=st.session_state.running)
296
 
297
- if st.button("Run Entity Linking", key="disabled", disabled=st.session_state.running):
298
  if input_sentence_user and input_mention_user:
299
  # check if the mention is in the sentence
300
  if input_mention_user in input_sentence_user:
 
270
  st.title("✨ Entity Linking Application ✨")
271
  st.caption("This web application is part of my master’s dissertation.")
272
 
273
+ if 'run_button' in st.session_state and st.session_state.run_button == True:
274
  st.session_state.running = True
275
  else:
276
  st.session_state.running = False
 
294
  combi = st.selectbox("Make combinations of each word? (Useful for difficult mentions)", ['Yes', 'No'], index=1, disabled=st.session_state.running)
295
  disambi = st.selectbox("Run acronym disambiguation? (Enable it if the mention include an acronym or if it is nested)", ['Yes', 'No'], index=0, disabled=st.session_state.running)
296
 
297
+ if st.button("Run Entity Linking", key="run_button", disabled=st.session_state.running):
298
  if input_sentence_user and input_mention_user:
299
  # check if the mention is in the sentence
300
  if input_mention_user in input_sentence_user: