RosiYo commited on
Commit
a294355
·
1 Parent(s): d1bf629

feat[bert]: FastAPI interface

Browse files
Files changed (1) hide show
  1. ml-service/app.py +0 -5
ml-service/app.py CHANGED
@@ -11,11 +11,6 @@ logging.basicConfig(level = logging.INFO)
11
  app = FastAPI()
12
  classifier = Classifier()
13
 
14
- # Define the required routes
15
- @app.get("/")
16
- async def home():
17
- return {"message": "Machine Learning service"}
18
-
19
  @app.post("/sentiment")
20
  async def data(data: dict):
21
  try:
 
11
  app = FastAPI()
12
  classifier = Classifier()
13
 
 
 
 
 
 
14
  @app.post("/sentiment")
15
  async def data(data: dict):
16
  try: