Spaces:
Runtime error
Runtime error
Modfiededition
commited on
Commit
•
7fc25df
1
Parent(s):
3e9d17f
Update app.py
Browse files
app.py
CHANGED
@@ -24,16 +24,15 @@ textbox = st.text_area('Write your text in this box:', '', height=200, max_chars
|
|
24 |
|
25 |
button = st.button('Detect grammar mistakes:')
|
26 |
|
27 |
-
#
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
# st.write(**output_text**)
|
|
|
24 |
|
25 |
button = st.button('Detect grammar mistakes:')
|
26 |
|
27 |
+
# output
|
28 |
+
if example_1:
|
29 |
+
output_text = model("I am write on AI")[0]["generated_text]
|
30 |
+
st.write(**output_text**)
|
31 |
+
|
32 |
+
if example_2:
|
33 |
+
output_text = model("This sentence has, bads grammar mistake!")[0]["generated_text]
|
34 |
+
st.write(**output_text**)
|
35 |
+
|
36 |
+
if button:
|
37 |
+
output_text = model(textbox)[0]["generated_text]
|
38 |
+
st.write(**output_text**)
|
|