Spaces:
Sleeping
Sleeping
add decorator
Browse files
app.py
CHANGED
@@ -23,6 +23,7 @@ with open("catboost_pipeline_4.job", "rb") as f:
|
|
23 |
pipe = joblib.load(f)
|
24 |
print(pipe)
|
25 |
|
|
|
26 |
# instantiating fastAPI object
|
27 |
app = FastAPI( title = "Machine Learning Classification API for predicting \
|
28 |
Income limit as Above Limit / Below Limit - upload a file")
|
|
|
23 |
pipe = joblib.load(f)
|
24 |
print(pipe)
|
25 |
|
26 |
+
@app.get("/")
|
27 |
# instantiating fastAPI object
|
28 |
app = FastAPI( title = "Machine Learning Classification API for predicting \
|
29 |
Income limit as Above Limit / Below Limit - upload a file")
|