Yatheshr commited on
Commit
157002d
·
verified ·
1 Parent(s): dd4821b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,10 +5,10 @@ from sklearn.model_selection import train_test_split
5
 
6
  # 1. Load Real SQL Query Logs
7
  # Load query logs from CSV (use your own CSV file here)
8
- @st.cache_data
9
  def load_data():
10
  # Make sure the CSV file is located correctly in the Hugging Face Space
11
- return pd.read_csv("Query-Performance-Predictor/data/sql_query_logs.csv") # Adjust the path if necessary
12
 
13
  # 2. Preprocess Data and Train the Model
14
  def preprocess_and_train_model(df):
 
5
 
6
  # 1. Load Real SQL Query Logs
7
  # Load query logs from CSV (use your own CSV file here)
8
+ #@st.cache_data
9
  def load_data():
10
  # Make sure the CSV file is located correctly in the Hugging Face Space
11
+ return pd.read_csv("data/sql_query_logs_2025_04_25.csv")
12
 
13
  # 2. Preprocess Data and Train the Model
14
  def preprocess_and_train_model(df):