Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ def main():
|
|
8 |
with st.form("text_field"):
|
9 |
text = st.text_area('enter some text:')
|
10 |
# clicked==True only when the button is clicked
|
11 |
-
clicked = st.form_submit_button("
|
12 |
if clicked:
|
13 |
results = classifier([text])
|
14 |
st.json(results)
|
8 |
with st.form("text_field"):
|
9 |
text = st.text_area('enter some text:')
|
10 |
# clicked==True only when the button is clicked
|
11 |
+
clicked = st.form_submit_button("Submit text")
|
12 |
if clicked:
|
13 |
results = classifier([text])
|
14 |
st.json(results)
|