Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,8 @@ data = pd.read_csv("mldata.csv")
|
|
| 10 |
|
| 11 |
|
| 12 |
#load prediction model from notebook
|
| 13 |
-
pickleFile = open('rfweights (1).pkl','rb')
|
|
|
|
| 14 |
rfmodel = pickle.load(pickleFile)
|
| 15 |
|
| 16 |
#Obtain the categorical/nominal data because it is not coded according (but based on the first occurence, first come first assign number)
|
|
|
|
| 10 |
|
| 11 |
|
| 12 |
#load prediction model from notebook
|
| 13 |
+
# pickleFile = open('rfweights (1).pkl','rb')
|
| 14 |
+
pickelFile=open('dtreeweights.pkl','rb')
|
| 15 |
rfmodel = pickle.load(pickleFile)
|
| 16 |
|
| 17 |
#Obtain the categorical/nominal data because it is not coded according (but based on the first occurence, first come first assign number)
|