Spaces:
Runtime error
Runtime error
Commit
·
af549a3
1
Parent(s):
1c7db0c
text update
Browse files
app.py
CHANGED
|
@@ -18,13 +18,12 @@ def load_model(input_complex_sentence,model):
|
|
| 18 |
def main():
|
| 19 |
|
| 20 |
st.title("Sentence Split in English using T5 Variants")
|
| 21 |
-
st.write("Sentence Split is the task of dividing a long Sentence into
|
| 22 |
|
| 23 |
st.sidebar.title("Sentence Simplifier")
|
| 24 |
model = st.sidebar.selectbox(
|
| 25 |
"Please Choose the Model",
|
| 26 |
("t5-base-wikisplit","t5-v1_1-base-wikisplit", "byt5-base-wikisplit","t5-large-wikisplit"))
|
| 27 |
-
st.write("Model Selected : ", model)
|
| 28 |
|
| 29 |
st.sidebar.write('''
|
| 30 |
## Applications:
|
|
@@ -34,7 +33,7 @@ def main():
|
|
| 34 |
''')
|
| 35 |
|
| 36 |
example = "Mary likes to play football in her freetime whenever she meets with her friends that are very nice people."
|
| 37 |
-
input_complex_sentence = st.text_area("Please type a
|
| 38 |
|
| 39 |
if st.button('Split'):
|
| 40 |
with st.spinner("Spliting Sentence...🧠"):
|
|
|
|
| 18 |
def main():
|
| 19 |
|
| 20 |
st.title("Sentence Split in English using T5 Variants")
|
| 21 |
+
st.write("Sentence Split is the task of **dividing a long Complex Sentence into Simple Sentences**")
|
| 22 |
|
| 23 |
st.sidebar.title("Sentence Simplifier")
|
| 24 |
model = st.sidebar.selectbox(
|
| 25 |
"Please Choose the Model",
|
| 26 |
("t5-base-wikisplit","t5-v1_1-base-wikisplit", "byt5-base-wikisplit","t5-large-wikisplit"))
|
|
|
|
| 27 |
|
| 28 |
st.sidebar.write('''
|
| 29 |
## Applications:
|
|
|
|
| 33 |
''')
|
| 34 |
|
| 35 |
example = "Mary likes to play football in her freetime whenever she meets with her friends that are very nice people."
|
| 36 |
+
input_complex_sentence = st.text_area("Please type a Complex Sentence to split",example)
|
| 37 |
|
| 38 |
if st.button('Split'):
|
| 39 |
with st.spinner("Spliting Sentence...🧠"):
|