Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -49,11 +49,13 @@ st.title("Grammar Corrector Two")
|
|
49 |
st.markdown("Paste or type text. Submit. The machine will attempt to correct your text's grammar and highlight its corrections.")
|
50 |
|
51 |
st.subheader("Example text: ")
|
52 |
-
col1, col2 = st.columns([1, 1])
|
53 |
with col1:
|
54 |
example_1 = st.button("Intrailly, the costumers was mad about why they will not but Fast Fashion again as they")
|
55 |
with col2:
|
56 |
example_2 = st.button("Firstly,why i think this policy should be changed is because sometime the customer may buy wrong size,if our company’s no-exchange policy,customers have threatened no never buy from Fast Fashion again.")
|
|
|
|
|
57 |
|
58 |
input_text = st.text_area('Paste or type text')
|
59 |
button = st.button('Submit')
|
@@ -81,5 +83,7 @@ if example_1:
|
|
81 |
output("Intrailly, the costumers was mad about why they will not but Fast Fashion again as they")
|
82 |
elif example_2:
|
83 |
output("Firstly,why i think this policy should be changed is because sometime the customer may buy wrong size,if our company’s no-exchange policy,customers have threatened no never buy from Fast Fashion again.")
|
|
|
|
|
84 |
elif input_text:
|
85 |
output(input_text)
|
|
|
49 |
st.markdown("Paste or type text. Submit. The machine will attempt to correct your text's grammar and highlight its corrections.")
|
50 |
|
51 |
st.subheader("Example text: ")
|
52 |
+
col1, col2, col3 = st.columns([1, 1])
|
53 |
with col1:
|
54 |
example_1 = st.button("Intrailly, the costumers was mad about why they will not but Fast Fashion again as they")
|
55 |
with col2:
|
56 |
example_2 = st.button("Firstly,why i think this policy should be changed is because sometime the customer may buy wrong size,if our company’s no-exchange policy,customers have threatened no never buy from Fast Fashion again.")
|
57 |
+
with col3:
|
58 |
+
example_3 = st.button("I try my best but still nervous. I hope I can get a good result.")
|
59 |
|
60 |
input_text = st.text_area('Paste or type text')
|
61 |
button = st.button('Submit')
|
|
|
83 |
output("Intrailly, the costumers was mad about why they will not but Fast Fashion again as they")
|
84 |
elif example_2:
|
85 |
output("Firstly,why i think this policy should be changed is because sometime the customer may buy wrong size,if our company’s no-exchange policy,customers have threatened no never buy from Fast Fashion again.")
|
86 |
+
elif example_3:
|
87 |
+
output("I try my best but still nervous. I hope I can get a good result.")
|
88 |
elif input_text:
|
89 |
output(input_text)
|