hfariborzi commited on
Commit
2766617
·
verified ·
1 Parent(s): 4bc0ae4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -34,6 +34,11 @@ logger = logging.getLogger(__name__)
34
  # FastAPI application
35
  app = FastAPI()
36
 
 
 
 
 
 
37
  # Request schema
38
  class InferenceRequest(BaseModel):
39
  query: str
 
34
  # FastAPI application
35
  app = FastAPI()
36
 
37
+ # Root endpoint for health check
38
+ @app.get("/")
39
+ def read_root():
40
+ return {"message": "API is up and running!"}
41
+
42
  # Request schema
43
  class InferenceRequest(BaseModel):
44
  query: str