Spaces:
Runtime error
Runtime error
mdadul
commited on
Commit
·
85d35cd
1
Parent(s):
d3d41c0
Fix import issues and update structure
Browse files- app/api/__init__.py +0 -0
- app/api/v1/__init__.py +0 -0
- app/api/v1/endpoints/predict.py +2 -1
- app/main.py +1 -1
- app/models/__init__.py +0 -0
app/api/__init__.py
ADDED
File without changes
|
app/api/v1/__init__.py
ADDED
File without changes
|
app/api/v1/endpoints/predict.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
from fastapi import APIRouter, HTTPException
|
2 |
from pydantic import BaseModel
|
3 |
-
from
|
|
|
4 |
|
5 |
router = APIRouter()
|
6 |
|
|
|
1 |
from fastapi import APIRouter, HTTPException
|
2 |
from pydantic import BaseModel
|
3 |
+
from ..models.nlp_model import classify_text # Relative import
|
4 |
+
|
5 |
|
6 |
router = APIRouter()
|
7 |
|
app/main.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
from fastapi import FastAPI
|
2 |
-
from api.v1.endpoints import predict
|
3 |
from app.core.config import settings
|
4 |
|
5 |
app = FastAPI(title=settings.PROJECT_NAME, version=settings.PROJECT_VERSION)
|
|
|
1 |
from fastapi import FastAPI
|
2 |
+
from api.v1.endpoints import predict
|
3 |
from app.core.config import settings
|
4 |
|
5 |
app = FastAPI(title=settings.PROJECT_NAME, version=settings.PROJECT_VERSION)
|
app/models/__init__.py
ADDED
File without changes
|