twigs commited on
Commit
7a49f84
1 Parent(s): 241fc6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -102,6 +102,9 @@ def main():
102
 
103
  with st.form(key="simplify"):
104
  input_sentence = st.text_area("Original sentence")
 
 
 
105
  tok = st.multiselect(
106
  label="Tokens to augment the sentence", options=base_tokens, default=base_tokens)
107
  if (tok):
@@ -114,7 +117,7 @@ def main():
114
  if (submit):
115
 
116
  tokens = " ".join([t+str(v) for t, v in zip(aug_tok, user_values)]) + " "
117
- output, words = full_pipeline(input_sentence, simpl_model, simpl_tok, tokens)
118
 
119
  c1, c2 = st.columns([1,2])
120
 
 
102
 
103
  with st.form(key="simplify"):
104
  input_sentence = st.text_area("Original sentence")
105
+
106
+ lexical = st.checkbox("Identify and replace complex words", value=True)
107
+
108
  tok = st.multiselect(
109
  label="Tokens to augment the sentence", options=base_tokens, default=base_tokens)
110
  if (tok):
 
117
  if (submit):
118
 
119
  tokens = " ".join([t+str(v) for t, v in zip(aug_tok, user_values)]) + " "
120
+ output, words = full_pipeline(input_sentence, simpl_model, simpl_tok, tokens, lexical)
121
 
122
  c1, c2 = st.columns([1,2])
123