Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,8 +12,7 @@ st.write("Classification for 6 emotions: sadness, joy, love, anger, fear, surpri
|
|
| 12 |
text = st.text_area("Enter the text to classify", "")
|
| 13 |
|
| 14 |
# Perform text classification when the user clicks the "Classify" button
|
| 15 |
-
|
| 16 |
-
|
| 17 |
# Perform text classification on the input text
|
| 18 |
results = classifier(text)[0]
|
| 19 |
|
|
|
|
| 12 |
text = st.text_area("Enter the text to classify", "")
|
| 13 |
|
| 14 |
# Perform text classification when the user clicks the "Classify" button
|
| 15 |
+
if st.button("Classify"):
|
|
|
|
| 16 |
# Perform text classification on the input text
|
| 17 |
results = classifier(text)[0]
|
| 18 |
|