bhadresh-savani commited on
Commit
b3beee3
·
1 Parent(s): 0ba692f

better try

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -56,11 +56,14 @@ def main():
56
 
57
  if change_example:
58
  example = examples[random.randint(0, len(examples)-1)]
 
 
59
  else:
60
  example=examples[0]
61
- input_complex_sentence = st.text_area("Please type a Complex Sentence to split",example)
 
62
 
63
- if st.button('Split✂️'):
64
  with st.spinner("Spliting Sentence...🧠"):
65
  generated_sentence = load_model(input_complex_sentence, model)
66
  sentence1, sentence2, _ = generated_sentence.split(".")
 
56
 
57
  if change_example:
58
  example = examples[random.randint(0, len(examples)-1)]
59
+ input_complex_sentence = st.text_area("Please type a Complex Sentence to split",example)
60
+ split = st.button('Change and Split✂️')
61
  else:
62
  example=examples[0]
63
+ input_complex_sentence = st.text_area("Please type a Complex Sentence to split",example)
64
+ split = st.button('Split✂️')
65
 
66
+ if split:
67
  with st.spinner("Spliting Sentence...🧠"):
68
  generated_sentence = load_model(input_complex_sentence, model)
69
  sentence1, sentence2, _ = generated_sentence.split(".")