Spaces:
Running
Running
fix: fixed the server err
Browse files
features/text_classifier/controller.py
CHANGED
@@ -5,7 +5,6 @@ from io import BytesIO
|
|
5 |
|
6 |
from fastapi import HTTPException, UploadFile, status, Depends
|
7 |
from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials
|
8 |
-
from nltk.tokenize import sent_tokenize
|
9 |
|
10 |
from .inferencer import classify_text
|
11 |
from .preprocess import parse_docx, parse_pdf, parse_txt
|
|
|
5 |
|
6 |
from fastapi import HTTPException, UploadFile, status, Depends
|
7 |
from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials
|
|
|
8 |
|
9 |
from .inferencer import classify_text
|
10 |
from .preprocess import parse_docx, parse_pdf, parse_txt
|
features/text_classifier/model_loader.py
CHANGED
@@ -21,7 +21,6 @@ def warmup():
|
|
21 |
|
22 |
download_model_repo()
|
23 |
_model, _tokenizer = load_model()
|
24 |
-
logging.info("Its ready")
|
25 |
|
26 |
|
27 |
def download_model_repo():
|
|
|
21 |
|
22 |
download_model_repo()
|
23 |
_model, _tokenizer = load_model()
|
|
|
24 |
|
25 |
|
26 |
def download_model_repo():
|