Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,9 +26,6 @@ def initialize_llm(model_choice):
|
|
| 26 |
return None
|
| 27 |
return ChatOpenAI(api_key=openai_api_key, model="gpt-4o")
|
| 28 |
|
| 29 |
-
def validate_and_clean_dataset(dataframe):
|
| 30 |
-
# Placeholder for dataset validation and cleaning logic
|
| 31 |
-
return dataframe
|
| 32 |
|
| 33 |
def load_dataset_into_session():
|
| 34 |
input_option = st.radio(
|
|
@@ -42,7 +39,6 @@ def load_dataset_into_session():
|
|
| 42 |
if st.button("Load Dataset"):
|
| 43 |
try:
|
| 44 |
st.session_state.df = pd.read_csv(file_path)
|
| 45 |
-
st.session_state.df = validate_and_clean_dataset(st.session_state.df)
|
| 46 |
st.success(f"File loaded successfully from '{file_path}'!")
|
| 47 |
except Exception as e:
|
| 48 |
st.error(f"Error loading dataset from the repo directory: {e}")
|
|
|
|
| 26 |
return None
|
| 27 |
return ChatOpenAI(api_key=openai_api_key, model="gpt-4o")
|
| 28 |
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
def load_dataset_into_session():
|
| 31 |
input_option = st.radio(
|
|
|
|
| 39 |
if st.button("Load Dataset"):
|
| 40 |
try:
|
| 41 |
st.session_state.df = pd.read_csv(file_path)
|
|
|
|
| 42 |
st.success(f"File loaded successfully from '{file_path}'!")
|
| 43 |
except Exception as e:
|
| 44 |
st.error(f"Error loading dataset from the repo directory: {e}")
|