AKKI-AFK commited on
Commit
7eb1083
·
verified ·
1 Parent(s): 71ce201

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -0
main.py CHANGED
@@ -8,6 +8,10 @@ load_dotenv()
8
 
9
  app = FastAPI(title="BookLeaf Cover Validator API")
10
 
 
 
 
 
11
  @app.post("/analyze")
12
  async def analyze_cover_api(file: UploadFile = File(...)):
13
  try:
 
8
 
9
  app = FastAPI(title="BookLeaf Cover Validator API")
10
 
11
+ @app.get("/")
12
+ def root():
13
+ return {"message": "API live"}
14
+
15
  @app.post("/analyze")
16
  async def analyze_cover_api(file: UploadFile = File(...)):
17
  try: