bhadresh-savani commited on
Commit
3e293df
·
1 Parent(s): e594532
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -53,16 +53,14 @@ def main():
53
  "'' ADAPTOGENS : Herbs for Strength , Stamina , and Stress Relief , '' Healing Arts Press , 2007 - contains a detailed monograph on Schisandra chinensis as well as highlights health benefits ."
54
  ]
55
  example = examples[random.randint(0, len(examples)-1)]
56
- previous_example = example
57
- while change_example and example==previous_example:
58
  example = examples[random.randint(0, len(examples)-1)]
59
- previous_example = example
60
  input_complex_sentence = st.text_area("Please type a Complex Sentence to split",example)
61
 
62
  if st.button('Split✂️'):
63
  with st.spinner("Spliting Sentence...🧠"):
64
  generated_sentence = load_model(input_complex_sentence, model)
65
- sentence1, sentence2 = generated_sentence.split(".")
66
  st.write("**Sentence1:** "+sentence1+".")
67
  st.write("**Sentence2:** "+sentence2)
68
 
 
53
  "'' ADAPTOGENS : Herbs for Strength , Stamina , and Stress Relief , '' Healing Arts Press , 2007 - contains a detailed monograph on Schisandra chinensis as well as highlights health benefits ."
54
  ]
55
  example = examples[random.randint(0, len(examples)-1)]
56
+ while change_example:
 
57
  example = examples[random.randint(0, len(examples)-1)]
 
58
  input_complex_sentence = st.text_area("Please type a Complex Sentence to split",example)
59
 
60
  if st.button('Split✂️'):
61
  with st.spinner("Spliting Sentence...🧠"):
62
  generated_sentence = load_model(input_complex_sentence, model)
63
+ sentence1, sentence2 = tuple(generated_sentence.split("."))
64
  st.write("**Sentence1:** "+sentence1+".")
65
  st.write("**Sentence2:** "+sentence2)
66