Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,17 +14,9 @@ def load_model():
|
|
| 14 |
return pipeline("text2text-generation", model=model_checkpoint)
|
| 15 |
model = load_model()
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
st.
|
| 20 |
-
st.markdown("๋น์ ์ ์์ด ๋ฌธ๋ฒ์ ์ฒดํฌํด ๋๋ฆฝ๋๋ค.! This assitant uses **T5-base model โ๏ธ** fine-tuned on jfleg dataset.")
|
| 21 |
-
|
| 22 |
-
st.subheader("Some examples: ")
|
| 23 |
-
example_1 = st.button("I am write on AI")
|
| 24 |
-
example_2 = st.button("This sentence has, bads grammar mistake!")
|
| 25 |
-
|
| 26 |
-
textbox = st.text_area('Write your text in this box:', '',height=100, max_chars=500 )
|
| 27 |
-
|
| 28 |
button = st.button('Detect grammar mistakes:')
|
| 29 |
|
| 30 |
# output
|
|
|
|
| 14 |
return pipeline("text2text-generation", model=model_checkpoint)
|
| 15 |
model = load_model()
|
| 16 |
|
| 17 |
+
st.subheader("๋น์ ์ ์์ด ์ผ๊ธฐ์ฅ์ ์ํด! ๐ค")
|
| 18 |
+
st.markdown("๋น์ ์ ์์ด ๋ฌธ๋ฒ์ ์ฒดํฌํด ๋๋ฆฝ๋๋ค.!")
|
| 19 |
+
textbox = st.text_area('Write your text in this box:', '',height=10, max_chars=300 )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
button = st.button('Detect grammar mistakes:')
|
| 21 |
|
| 22 |
# output
|