Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from transformers import (
|
|
6 |
AutoModelForSequenceClassification,
|
7 |
AutoTokenizer,
|
8 |
)
|
9 |
-
from
|
10 |
|
11 |
device = 'cpu'
|
12 |
model_dir = "nealcly/detection-longformer"
|
|
|
6 |
AutoModelForSequenceClassification,
|
7 |
AutoTokenizer,
|
8 |
)
|
9 |
+
from utils import preprocess
|
10 |
|
11 |
device = 'cpu'
|
12 |
model_dir = "nealcly/detection-longformer"
|