Spaces:
Runtime error
Runtime error
Commit
·
1c7db0c
1
Parent(s):
e51b559
updated sidebar
Browse files
app.py
CHANGED
|
@@ -20,10 +20,18 @@ def main():
|
|
| 20 |
st.title("Sentence Split in English using T5 Variants")
|
| 21 |
st.write("Sentence Split is the task of dividing a long Sentence into multiple Sentences")
|
| 22 |
|
|
|
|
| 23 |
model = st.sidebar.selectbox(
|
| 24 |
"Please Choose the Model",
|
| 25 |
("t5-base-wikisplit","t5-v1_1-base-wikisplit", "byt5-base-wikisplit","t5-large-wikisplit"))
|
| 26 |
st.write("Model Selected : ", model)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
example = "Mary likes to play football in her freetime whenever she meets with her friends that are very nice people."
|
| 29 |
input_complex_sentence = st.text_area("Please type a long Sentence to split",example)
|
|
|
|
| 20 |
st.title("Sentence Split in English using T5 Variants")
|
| 21 |
st.write("Sentence Split is the task of dividing a long Sentence into multiple 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 |
st.write("Model Selected : ", model)
|
| 28 |
+
|
| 29 |
+
st.sidebar.write('''
|
| 30 |
+
## Applications:
|
| 31 |
+
* Sentence Simplification
|
| 32 |
+
* Data Augmentation
|
| 33 |
+
* Sentence Rephrase
|
| 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 long Sentence to split",example)
|