JenetGhumman commited on
Commit
69859cb
·
verified ·
1 Parent(s): 39aa6d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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 # Ensure `text` is the updated module
4
 
5
  # Load environment variables
6
  load_dotenv()
@@ -11,7 +11,7 @@ app = FastAPI(
11
  )
12
 
13
  # Include all routers
14
- app.include_router(text.router) # This should now include `/text_svm`
15
  app.include_router(image.router)
16
  app.include_router(audio.router)
17
 
@@ -21,8 +21,7 @@ async def root():
21
  "message": "Welcome to the Frugal AI Challenge API",
22
  "endpoints": {
23
  "text": "/text - Text classification task",
24
- "text_svm": "/text_svm - Text classification using SVM", # Add this to the endpoints list
25
  "image": "/image - Image classification task (coming soon)",
26
  "audio": "/audio - Audio classification task (coming soon)"
27
  }
28
- }
 
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
  )
12
 
13
  # Include all routers
14
+ app.include_router(text.router)
15
  app.include_router(image.router)
16
  app.include_router(audio.router)
17
 
 
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
+ }