Le Quang Huy commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,9 +15,9 @@ if not csv_files:
|
|
| 15 |
file_path = os.path.join(path, csv_files[0])
|
| 16 |
print(f"Using dataset file: {file_path}")
|
| 17 |
|
| 18 |
-
|
| 19 |
print("Dataset loaded successfully")
|
| 20 |
-
print("Columns: ",
|
| 21 |
|
| 22 |
X = df[['magnitude','depth' ,'cdi', 'mmi', 'sig']]
|
| 23 |
y = df['alert']
|
|
|
|
| 15 |
file_path = os.path.join(path, csv_files[0])
|
| 16 |
print(f"Using dataset file: {file_path}")
|
| 17 |
|
| 18 |
+
df = pd.read_csv(file_path)
|
| 19 |
print("Dataset loaded successfully")
|
| 20 |
+
print("Columns: ", df.columns.tolist())
|
| 21 |
|
| 22 |
X = df[['magnitude','depth' ,'cdi', 'mmi', 'sig']]
|
| 23 |
y = df['alert']
|