Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,15 +21,6 @@ button = st.button('Detect grammar mistakes:')
|
|
21 |
|
22 |
# output
|
23 |
st.subheader("Correct sentence: ")
|
24 |
-
if example_1:
|
25 |
-
with st.spinner('In progress.......'):
|
26 |
-
output_text = model("I am write on AI")[0]["generated_text"]
|
27 |
-
st.markdown("## "+output_text)
|
28 |
-
|
29 |
-
if example_2:
|
30 |
-
with st.spinner('In progress.......'):
|
31 |
-
output_text = model("This sentence has, bads grammar mistake!")[0]["generated_text"]
|
32 |
-
st.markdown("## "+output_text)
|
33 |
if button:
|
34 |
with st.spinner('In progress.......'):
|
35 |
if textbox:
|
|
|
21 |
|
22 |
# output
|
23 |
st.subheader("Correct sentence: ")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
if button:
|
25 |
with st.spinner('In progress.......'):
|
26 |
if textbox:
|