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