-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): implement object detection, omr, and search routes
This commit introduces new API endpoints for object detection, omr, and search functionalities. It replaces the previous implementation with a more robust and efficient solution. The changes include: - Implementing object detection using TensorFlow Serving. - Adding an OMR route for processing Optical Mark Recognition data. - Implementing a search route using TensorFlow Serving and image cropping. - Removing old routes and dependencies. - Adding new utility functions for image processing and data handling. - Updating project dependencies and configurations. - Improving code structure and organization. - Adding support for Docker and Docker Compose. These changes enhance the API's capabilities and provide a better user experience. They also improve maintainability and scalability.
- Loading branch information
Showing
35 changed files
with
1,226 additions
and
2,397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
FIREBASE_CONFIG= | ||
STORAGE_BUCKET= | ||
QDRANT_URL= | ||
QDRANT_SECRET= | ||
MEILISEARCH_URL= | ||
MEILISEARCH_SECRET= | ||
NITRO_PRESET= | ||
NITRO_CORS_URL= | ||
NITRO_API_URL= | ||
TENSORFLOW_API_URL= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,9 @@ logs | |
.env* | ||
!.env.example | ||
|
||
# Assets files | ||
assets/* | ||
!assets/**/.gitkeep | ||
models | ||
|
||
firebase-cred.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: 'unai' | ||
services: | ||
api: | ||
build: . | ||
env_file: | ||
- .env.prod | ||
ports: | ||
- 2300:8000 | ||
|
||
tf-serve: | ||
image: "tensorflow/serving:2.18.0" | ||
ports: | ||
- 1510:8500 | ||
- 1511:8501 | ||
volumes: | ||
- type: bind | ||
source: models | ||
target: /models | ||
tty: true | ||
command: --model_config_file=/models/models.config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from pydantic_settings import BaseSettings | ||
|
||
|
||
class Config(BaseSettings): | ||
tensorflow_api_url: str = "" | ||
|
||
|
||
config = Config() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
from fastapi import FastAPI | ||
|
||
# from .dependencies import get_query_token | ||
from .routers import health, detect, search | ||
|
||
# from server.dependencies import get_query_token | ||
from server.routes import health, detect, omr, search | ||
|
||
app = FastAPI() # dependencies=[Depends(get_query_token)]) | ||
|
||
app.include_router(health.router) | ||
app.include_router(detect.router) | ||
app.include_router(search.router) | ||
app.include_router(omr.router) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.