Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import T5ForConditionalGeneration, AutoTokenizer
|
3 |
|
4 |
-
st.title("
|
5 |
-
st.markdown('
|
6 |
ttokenizer = AutoTokenizer.from_pretrained("./")
|
7 |
tmodel = T5ForConditionalGeneration.from_pretrained('./')
|
8 |
|
9 |
-
form = st.form("
|
10 |
input_text = form.text_input(label='Enter a random sentence')
|
11 |
submit = form.form_submit_button("Submit")
|
12 |
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import T5ForConditionalGeneration, AutoTokenizer
|
3 |
|
4 |
+
st.title("SimpleGrammarlyT5")
|
5 |
+
st.markdown('SimpleGrammarlyT5 is a fine-tuned version of **pre-trained t5-small model** modelled on randomly selected 50000 sentences modified by imputing random noises/errors and trained using transformers. It not only looks for _spelling errors but also looks for the semantics_ in the sentence and suggest other possible words for the incorrect word.')
|
6 |
ttokenizer = AutoTokenizer.from_pretrained("./")
|
7 |
tmodel = T5ForConditionalGeneration.from_pretrained('./')
|
8 |
|
9 |
+
form = st.form("T5-form")
|
10 |
input_text = form.text_input(label='Enter a random sentence')
|
11 |
submit = form.form_submit_button("Submit")
|
12 |
|