Skip to content

Commit

Permalink
Adding Audio Routing (#1172)
Browse files Browse the repository at this point in the history
* adding audio routing

* 🎨 Auto-generated directory tree for repository in Architecture.md

* 🎨 Format Python code with psf/black

---------

Co-authored-by: codingwithsurya <[email protected]>
  • Loading branch information
codingwithsurya and codingwithsurya authored May 8, 2024
1 parent d39a643 commit 9cb69e4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/Architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
| | | | |- 📜 __init__.py
| | | | |- 📜 image.py
| | | | |- 📜 schemas.py
| | | |- 📂 audio:
| | | | |- 📜 __init__.py
| | | | |- 📜 audio.py
| | | | |- 📜 schemas.py
| | | |- 📂 datasets:
| | | | |- 📂 default:
| | | | | |- 📜 columns.py
Expand Down
Empty file.
6 changes: 6 additions & 0 deletions training/training/routes/audio/audio.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import typing
from typing import Any, Literal, Optional
from django.http import HttpRequest
from ninja import Router, Schema

router = Router()
Empty file.
2 changes: 2 additions & 0 deletions training/training/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from training.routes.datasets.default.columns import router as default_dataset_router
from training.routes.tabular.tabular import router as tabular_router
from training.routes.image.image import router as image_router
from training.routes.audio.audio import router as audio_router

api = NinjaAPI()

Expand All @@ -34,6 +35,7 @@ def test(request: HttpRequest):
api.add_router("/datasets/default/", default_dataset_router)
api.add_router("/tabular", tabular_router)
api.add_router("/image", image_router)
api.add_router("/audio", audio_router)

urlpatterns = [
path("admin/", admin.site.urls),
Expand Down

0 comments on commit 9cb69e4

Please sign in to comment.