Modfiededition commited on
Commit
7fc25df
1 Parent(s): 3e9d17f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -13
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
- #if example_1:
28
- # output_text = model("I am write on AI")[0]["generated_text]
29
- # st.write(**output_text**)
30
-
31
- #if example_2:
32
- # output_text = model("This sentence has, bads grammar mistake!")[0]["generated_text]
33
- # st.write(**output_text**)
34
-
35
-
36
- #if button:
37
- # output_text = model(textbox)[0]["generated_text]
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**)