Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import pandas as pd
|
|
5 |
from sklearn.model_selection import train_test_split
|
6 |
|
7 |
# Convert PDF to DataFrame (assuming it's already loaded as df in CSV or DataFrame format)
|
8 |
-
df = pd.read_csv('
|
9 |
df['label'] = (df['target_column'] > threshold_value).astype(int) # Adjust target column for binary classification
|
10 |
|
11 |
# Split the dataset
|
|
|
5 |
from sklearn.model_selection import train_test_split
|
6 |
|
7 |
# Convert PDF to DataFrame (assuming it's already loaded as df in CSV or DataFrame format)
|
8 |
+
df = pd.read_csv('diabetes_prediction_dataset.csv') # Replace with the path to your CSV
|
9 |
df['label'] = (df['target_column'] > threshold_value).astype(int) # Adjust target column for binary classification
|
10 |
|
11 |
# Split the dataset
|