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