Spaces:
Runtime error
Runtime error
quangbmk66dsai02
commited on
Commit
·
32760a5
1
Parent(s):
26f2a88
update
Browse files- app_NER.py +3 -0
app_NER.py
CHANGED
@@ -2,6 +2,9 @@ from fastapi import FastAPI
|
|
2 |
from pydantic import BaseModel
|
3 |
import joblib
|
4 |
from datasets import load_dataset
|
|
|
|
|
|
|
5 |
|
6 |
# --- Load model and label map ---
|
7 |
crf = joblib.load("crf_model.pkl")
|
|
|
2 |
from pydantic import BaseModel
|
3 |
import joblib
|
4 |
from datasets import load_dataset
|
5 |
+
import os
|
6 |
+
os.environ["HF_DATASETS_CACHE"] = "/tmp"
|
7 |
+
|
8 |
|
9 |
# --- Load model and label map ---
|
10 |
crf = joblib.load("crf_model.pkl")
|