Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,6 +23,10 @@ def reset_conversation():
|
|
| 23 |
st.session_state.messages = []
|
| 24 |
return None
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
# Define classification options
|
| 27 |
classification_types = ["Sentiment Analysis", "Binary Classification", "Multi-Class Classification"]
|
| 28 |
|
|
@@ -129,3 +133,4 @@ if task == "Data Labeling":
|
|
| 129 |
else:
|
| 130 |
st.sidebar.write("This feature will allow you to generate new data. Coming soon!")
|
| 131 |
|
|
|
|
|
|
| 23 |
st.session_state.messages = []
|
| 24 |
return None
|
| 25 |
|
| 26 |
+
# Initialize session state for 'messages' if it doesn't exist
|
| 27 |
+
if 'messages' not in st.session_state:
|
| 28 |
+
st.session_state.messages = []
|
| 29 |
+
|
| 30 |
# Define classification options
|
| 31 |
classification_types = ["Sentiment Analysis", "Binary Classification", "Multi-Class Classification"]
|
| 32 |
|
|
|
|
| 133 |
else:
|
| 134 |
st.sidebar.write("This feature will allow you to generate new data. Coming soon!")
|
| 135 |
|
| 136 |
+
|