Spaces:
Runtime error
Runtime error
Commit
·
5f87ea2
1
Parent(s):
2d94679
Update app.py
Browse files
app.py
CHANGED
@@ -27,13 +27,13 @@ textbox = st.text_area('Write your text in this box:', '', height=100, max_chars
|
|
27 |
|
28 |
button = st.button('Detect grammar mistakes:')
|
29 |
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
my_bar.progress(percent_complete + 1)
|
34 |
# output
|
35 |
if example_1:
|
36 |
-
|
|
|
37 |
st.markdown("**"+output_text+"**")
|
38 |
|
39 |
if example_2:
|
|
|
27 |
|
28 |
button = st.button('Detect grammar mistakes:')
|
29 |
|
30 |
+
>>>
|
31 |
+
>>> time.sleep(5)
|
32 |
+
>>> st.success('Done!')
|
|
|
33 |
# output
|
34 |
if example_1:
|
35 |
+
with st.spinner('In progress.......'):
|
36 |
+
output_text = model("I am write on AI")[0]["generated_text"]
|
37 |
st.markdown("**"+output_text+"**")
|
38 |
|
39 |
if example_2:
|