Update app4.py
Browse files
app4.py
CHANGED
@@ -21,10 +21,10 @@ if not api_key or not pandasai_api_key:
|
|
21 |
st.warning("API keys for OpenAI or PandasAI are missing. Ensure both keys are set in environment variables.")
|
22 |
|
23 |
# Add session reset button
|
24 |
-
if st.button("Reset Session"):
|
25 |
-
for key in list(st.session_state.keys()):
|
26 |
-
del st.session_state[key]
|
27 |
-
st.experimental_rerun()
|
28 |
|
29 |
# Function to validate and clean dataset
|
30 |
def validate_and_clean_dataset(df):
|
|
|
21 |
st.warning("API keys for OpenAI or PandasAI are missing. Ensure both keys are set in environment variables.")
|
22 |
|
23 |
# Add session reset button
|
24 |
+
#if st.button("Reset Session"):
|
25 |
+
#for key in list(st.session_state.keys()):
|
26 |
+
#del st.session_state[key]
|
27 |
+
#st.experimental_rerun()
|
28 |
|
29 |
# Function to validate and clean dataset
|
30 |
def validate_and_clean_dataset(df):
|