Spaces:
Runtime error
Runtime error
Commit
·
be696f8
1
Parent(s):
462a54a
Update app.py
Browse files
app.py
CHANGED
@@ -131,7 +131,7 @@ def main():
|
|
131 |
f.write(mlf_file.read())
|
132 |
|
133 |
# Create an instance of MarkovChainClassifier with the uploaded ML config file
|
134 |
-
model = MarkovChainClassifier("
|
135 |
|
136 |
# # Load the model from cc.mod
|
137 |
# model = MarkovChainClassifier.load_model("cc.mod")
|
@@ -142,7 +142,7 @@ def main():
|
|
142 |
# Check if the "Predict" button was clicked
|
143 |
if st.button("Predict"):
|
144 |
# Load the saved model
|
145 |
-
model.load_model("cc.mod")
|
146 |
|
147 |
# Call the predict method of the MarkovChainClassifier instance
|
148 |
pred = model.predict()
|
|
|
131 |
f.write(mlf_file.read())
|
132 |
|
133 |
# Create an instance of MarkovChainClassifier with the uploaded ML config file
|
134 |
+
model = MarkovChainClassifier("mcclf_cc.properties")
|
135 |
|
136 |
# # Load the model from cc.mod
|
137 |
# model = MarkovChainClassifier.load_model("cc.mod")
|
|
|
142 |
# Check if the "Predict" button was clicked
|
143 |
if st.button("Predict"):
|
144 |
# Load the saved model
|
145 |
+
# model.load_model("cc.mod")
|
146 |
|
147 |
# Call the predict method of the MarkovChainClassifier instance
|
148 |
pred = model.predict()
|