Spaces:
Sleeping
Sleeping
fahmiaziz98
commited on
Commit
·
b620d4a
1
Parent(s):
57d9736
frist commit
Browse files- router/disaster.py +1 -2
- router/image_clf.py +1 -2
- router/sentiment.py +1 -2
router/disaster.py
CHANGED
@@ -7,8 +7,7 @@ from utils.pipeline import load_model
|
|
7 |
|
8 |
router = APIRouter()
|
9 |
|
10 |
-
|
11 |
-
MODEL_PATH = os.path.join(BASE_DIR, "ml_models", "tinybert-disaster-tweet")
|
12 |
|
13 |
@router.post(
|
14 |
"/disaster_classification",
|
|
|
7 |
|
8 |
router = APIRouter()
|
9 |
|
10 |
+
MODEL_PATH = "ml_models/tinybert-disaster-tweet/"
|
|
|
11 |
|
12 |
@router.post(
|
13 |
"/disaster_classification",
|
router/image_clf.py
CHANGED
@@ -7,8 +7,7 @@ from utils.pipeline import load_model
|
|
7 |
|
8 |
router = APIRouter()
|
9 |
|
10 |
-
|
11 |
-
MODEL_PATH = os.path.join(BASE_DIR, "ml_models", "vit-human-pose-classification")
|
12 |
|
13 |
@router.post(
|
14 |
"/image_classification",
|
|
|
7 |
|
8 |
router = APIRouter()
|
9 |
|
10 |
+
MODEL_PATH = "ml_models/vit-human-pose-classification/"
|
|
|
11 |
|
12 |
@router.post(
|
13 |
"/image_classification",
|
router/sentiment.py
CHANGED
@@ -7,8 +7,7 @@ from utils.pipeline import load_model
|
|
7 |
|
8 |
router = APIRouter()
|
9 |
|
10 |
-
|
11 |
-
MODEL_PATH = os.path.join(BASE_DIR, "ml_models", "tinybert-sentiment-analysis")
|
12 |
|
13 |
@router.post(
|
14 |
"/sentiment_classification",
|
|
|
7 |
|
8 |
router = APIRouter()
|
9 |
|
10 |
+
MODEL_PATH = "ml_models/tinybert-sentiment-analysis/"
|
|
|
11 |
|
12 |
@router.post(
|
13 |
"/sentiment_classification",
|