Henok21 commited on
Commit
c48ce46
·
1 Parent(s): 572059a

add decorator

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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")