Spaces:
Runtime error
Runtime error
Commit
·
ab1772f
1
Parent(s):
1529e09
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,15 +16,15 @@ model = load_model()
|
|
| 16 |
|
| 17 |
|
| 18 |
#prompts
|
| 19 |
-
st.title("Writing Assistant for you
|
| 20 |
-
st.markdown("This writing assistant detects and corrects grammatical mistakes for you! This assitant uses **T5-base model
|
| 21 |
#image = Image.open('new_grammar.jpg')
|
| 22 |
#st.image(image, caption='Image Credit: https://abrc.org.au/wp-content/uploads/2020/12/Grammar-checker.jpg')
|
| 23 |
st.subheader("Some examples: ")
|
| 24 |
example_1 = st.button("I am write on AI")
|
| 25 |
example_2 = st.button("This sentence has, bads grammar mistake!")
|
| 26 |
-
|
| 27 |
-
textbox = st.
|
| 28 |
|
| 29 |
button = st.button('Detect grammar mistakes:')
|
| 30 |
|
|
|
|
| 16 |
|
| 17 |
|
| 18 |
#prompts
|
| 19 |
+
st.title("Writing Assistant for you 🤖")
|
| 20 |
+
st.markdown("This writing assistant detects and corrects grammatical mistakes for you! This assitant uses **T5-base model ✍️** fine-tuned on jfleg dataset.")
|
| 21 |
#image = Image.open('new_grammar.jpg')
|
| 22 |
#st.image(image, caption='Image Credit: https://abrc.org.au/wp-content/uploads/2020/12/Grammar-checker.jpg')
|
| 23 |
st.subheader("Some examples: ")
|
| 24 |
example_1 = st.button("I am write on AI")
|
| 25 |
example_2 = st.button("This sentence has, bads grammar mistake!")
|
| 26 |
+
|
| 27 |
+
textbox = st.text_area('Write your text in this box:', '',height=100, max_chars=500 )
|
| 28 |
|
| 29 |
button = st.button('Detect grammar mistakes:')
|
| 30 |
|