satvs commited on
Commit
d26ff53
·
1 Parent(s): 998e8ac

test deployment

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -1,6 +1,6 @@
1
  from fastapi import FastAPI
2
  from dotenv import load_dotenv
3
- from tasks import text, image, audio
4
 
5
  # Load environment variables
6
  load_dotenv()
@@ -11,17 +11,13 @@ app = FastAPI(
11
  )
12
 
13
  # Include all routers
14
- app.include_router(text.router)
15
  app.include_router(image.router)
16
- app.include_router(audio.router)
17
 
18
  @app.get("/")
19
  async def root():
20
  return {
21
- "message": "Welcome to the Frugal AI Challenge API",
22
  "endpoints": {
23
- "text": "/text - Text classification task",
24
  "image": "/image - Image classification task (coming soon)",
25
- "audio": "/audio - Audio classification task (coming soon)"
26
  }
27
- }
 
1
  from fastapi import FastAPI
2
  from dotenv import load_dotenv
3
+ from tasks import image
4
 
5
  # Load environment variables
6
  load_dotenv()
 
11
  )
12
 
13
  # Include all routers
 
14
  app.include_router(image.router)
 
15
 
16
  @app.get("/")
17
  async def root():
18
  return {
19
+ "message": "This is an API for a frugal object detection model",
20
  "endpoints": {
 
21
  "image": "/image - Image classification task (coming soon)",
 
22
  }
23
+ }