Spaces:
Runtime error
Runtime error
imalexianne
commited on
Commit
·
4dd528a
1
Parent(s):
ecb8d8f
modify main.py file
Browse files
main.py
CHANGED
@@ -11,18 +11,11 @@ from sklearn.compose import ColumnTransformer
|
|
11 |
from sklearn.pipeline import Pipeline
|
12 |
from sklearn.linear_model import LogisticRegression
|
13 |
|
14 |
-
app = FastAPI()
|
15 |
-
|
16 |
-
# Load the entire pipeline
|
17 |
-
# pipeline_filepath = "pipeline.joblib"
|
18 |
-
# pipeline = joblib.load(pipeline_filepath)
|
19 |
-
|
20 |
-
# import joblib
|
21 |
-
|
22 |
-
# Reload the model
|
23 |
pipeline_filepath = "pipeline.joblib"
|
24 |
pipeline = joblib.load(pipeline_filepath)
|
25 |
|
|
|
|
|
26 |
# Save the model again
|
27 |
joblib.dump(pipeline, pipeline_filepath)
|
28 |
|
|
|
11 |
from sklearn.pipeline import Pipeline
|
12 |
from sklearn.linear_model import LogisticRegression
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
pipeline_filepath = "pipeline.joblib"
|
15 |
pipeline = joblib.load(pipeline_filepath)
|
16 |
|
17 |
+
app = FastAPI()
|
18 |
+
|
19 |
# Save the model again
|
20 |
joblib.dump(pipeline, pipeline_filepath)
|
21 |
|