Spaces:
Sleeping
Sleeping
Commit
·
005ae32
1
Parent(s):
3e2f980
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ data = pd.read_csv('dataset.csv')
|
|
| 12 |
|
| 13 |
# Preprocess the dataset
|
| 14 |
mlb = MultiLabelBinarizer()
|
| 15 |
-
symptoms = [s.split(',')
|
| 16 |
X = mlb.fit_transform(symptoms)
|
| 17 |
disease = pd.get_dummies(data['Disease'])
|
| 18 |
disease_list = list(disease.columns)
|
|
|
|
| 12 |
|
| 13 |
# Preprocess the dataset
|
| 14 |
mlb = MultiLabelBinarizer()
|
| 15 |
+
symptoms = [s.lower().split(',') for s in data['Symptoms']]
|
| 16 |
X = mlb.fit_transform(symptoms)
|
| 17 |
disease = pd.get_dummies(data['Disease'])
|
| 18 |
disease_list = list(disease.columns)
|