Update app.py
Browse files
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("
|
| 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):
|