Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
Fix devbox
Browse files Browse the repository at this point in the history
  • Loading branch information
silasarildsen committed Feb 12, 2024
1 parent 5c43a8d commit 7c66bad
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 46 deletions.
35 changes: 0 additions & 35 deletions .devcontainer/devcontainer.json

This file was deleted.

Empty file added README.md
Empty file.
5 changes: 2 additions & 3 deletions backend/sign/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from fastapi import FastAPI
from pydantic import BaseModel
from sign.model.keypoint_classifier.keypoint_classifier import NormalizedLandmark, NormalizedLandmarks, NormalizedLandmarksDTO
from sign.recogniser.recogniser import Recogniser
from backend.sign.model.keypoint_classifier.keypoint_classifier import NormalizedLandmark, NormalizedLandmarks, NormalizedLandmarksDTO
from backend.sign.recogniser.recogniser import Recogniser
from fastapi.middleware.cors import CORSMiddleware
import uvicorn

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
# -*- coding: utf-8 -*-
import copy
import itertools
from typing_extensions import Unpack
import numpy as np
from pydantic import BaseModel, ConfigDict
from pydantic import BaseModel
import tensorflow as tf
from pathlib import Path

Expand Down
5 changes: 2 additions & 3 deletions backend/sign/recogniser/recogniser.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from pathlib import Path
from pydantic import BaseModel
from sign.model.keypoint_classifier.keypoint_classifier import KeyPointClassifier
from backend.sign.model.keypoint_classifier.keypoint_classifier import KeyPointClassifier
import csv

from sign.model.keypoint_classifier.keypoint_classifier import NormalizedLandmarks
from backend.sign.model.keypoint_classifier.keypoint_classifier import NormalizedLandmarks

class Recogniser:
def __init__(self) -> None:
Expand Down
3 changes: 2 additions & 1 deletion devbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"packages": [
"poetry@latest",
"nodejs@latest",
"python@latest"
"python@latest",
"stdenv.cc.cc.lib"
],
"shell": {
"init_hook": [
Expand Down
4 changes: 4 additions & 0 deletions devbox.lock
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
"store_path": "/nix/store/ypbry1pg5zzl5prj35f5swzy1gir37ml-python3-3.12.1"
}
}
},
"stdenv.cc.cc.lib": {
"resolved": "github:NixOS/nixpkgs/75a52265bda7fd25e06e3a67dee3f0354e73243c#stdenv.cc.cc.lib",
"source": "nixpkg"
}
}
}
File renamed without changes.
7 changes: 5 additions & 2 deletions backend/pyproject.toml → pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.poetry]
name = "sign"
name = "backend"
version = "0.1.0"
description = "Project bsc sign language recognition"
authors = ["p <[email protected]>"]
Expand All @@ -21,4 +21,7 @@ mediapipe = "^0.10.9"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
build-backend = "poetry.core.masonry.api"

[tool.poetry.scripts]
dev = "backend.sign.main:app --reload"

0 comments on commit 7c66bad

Please sign in to comment.