Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -3,6 +3,7 @@ from core.init_nlp import initialize_nlp
|
|
3 |
from contextlib import asynccontextmanager
|
4 |
import logging
|
5 |
from api.endpoints import location
|
|
|
6 |
|
7 |
@asynccontextmanager
|
8 |
async def lifespan(app: FastAPI):
|
|
|
3 |
from contextlib import asynccontextmanager
|
4 |
import logging
|
5 |
from api.endpoints import location
|
6 |
+
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
7 |
|
8 |
@asynccontextmanager
|
9 |
async def lifespan(app: FastAPI):
|