Optimize imports
Browse files- handler.py +1 -6
handler.py
CHANGED
|
@@ -1,17 +1,12 @@
|
|
| 1 |
from typing import Dict, Any
|
| 2 |
|
| 3 |
import spacy
|
| 4 |
-
from
|
| 5 |
-
from sklearn.linear_model import LogisticRegression
|
| 6 |
-
from sklearn.model_selection import train_test_split
|
| 7 |
from huggingface_hub import hf_hub_download
|
| 8 |
from joblib import load
|
| 9 |
|
| 10 |
SPACY_MODEL = spacy.load('en_core_web_trf', disable=['parser']) # Largest, slowest, most accurate model
|
| 11 |
|
| 12 |
-
from environs import Env
|
| 13 |
-
|
| 14 |
-
|
| 15 |
|
| 16 |
|
| 17 |
class EndpointHandler:
|
|
|
|
| 1 |
from typing import Dict, Any
|
| 2 |
|
| 3 |
import spacy
|
| 4 |
+
from environs import Env
|
|
|
|
|
|
|
| 5 |
from huggingface_hub import hf_hub_download
|
| 6 |
from joblib import load
|
| 7 |
|
| 8 |
SPACY_MODEL = spacy.load('en_core_web_trf', disable=['parser']) # Largest, slowest, most accurate model
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
|
| 12 |
class EndpointHandler:
|