Spaces:
Sleeping
Sleeping
test deployment
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
from fastapi import FastAPI
|
2 |
from dotenv import load_dotenv
|
3 |
-
from tasks import
|
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": "
|
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 |
+
}
|