King-8 commited on
Commit
d7dbe04
·
verified ·
1 Parent(s): 47173be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -21,6 +21,10 @@ labels = [
21
 
22
  class InputText(BaseModel):
23
  text: str
 
 
 
 
24
 
25
  @app.post("/predict")
26
  def predict(input: InputText):
 
21
 
22
  class InputText(BaseModel):
23
  text: str
24
+
25
+ @app.get("/")
26
+ def root():
27
+ return {"message": "Help Classifier API is running"}
28
 
29
  @app.post("/predict")
30
  def predict(input: InputText):