bhadresh-savani commited on
Commit
e2f0e5c
·
1 Parent(s): 1794fd1

fixes random sentence

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -52,11 +52,9 @@ def main():
52
  "'' '' New York Mining Disaster 1941 '' '' was the second EP released by the Bee Gees in 1967 on the Spin Records , like their first EP , it was released only in Australia .",
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 = ""
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✂️'):
 
52
  "'' '' New York Mining Disaster 1941 '' '' was the second EP released by the Bee Gees in 1967 on the Spin Records , like their first EP , it was released only in Australia .",
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[0]
56
+ if 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✂️'):