Spaces:
Sleeping
Sleeping
Update app/main.py
Browse files- app/main.py +1 -1
app/main.py
CHANGED
|
@@ -21,7 +21,7 @@ tokenizer = BertTokenizer.from_pretrained(
|
|
| 21 |
model.eval()
|
| 22 |
|
| 23 |
le = LabelEncoder()
|
| 24 |
-
le.classes_ = np.load("
|
| 25 |
|
| 26 |
class TextInput(BaseModel):
|
| 27 |
text: str
|
|
|
|
| 21 |
model.eval()
|
| 22 |
|
| 23 |
le = LabelEncoder()
|
| 24 |
+
le.classes_ = np.load("label_classes.npy", allow_pickle=True)
|
| 25 |
|
| 26 |
class TextInput(BaseModel):
|
| 27 |
text: str
|