Spaces:
Runtime error
Runtime error
Commit
·
19d436b
1
Parent(s):
91c3767
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,9 +10,9 @@ model_name = "microsoft/xlm-align-base"
|
|
| 10 |
tokenizer_name = "microsoft/xlm-align-base"
|
| 11 |
num_labels = 78
|
| 12 |
num_intents = 23
|
| 13 |
-
checkpoint_path = "
|
| 14 |
-
intent_encoder_path = "
|
| 15 |
-
ner_encoder_path = "
|
| 16 |
|
| 17 |
def predict_function(text):
|
| 18 |
label_encoder = LabelEncoder()
|
|
|
|
| 10 |
tokenizer_name = "microsoft/xlm-align-base"
|
| 11 |
num_labels = 78
|
| 12 |
num_intents = 23
|
| 13 |
+
checkpoint_path = "models/xlm_align_base.bin"
|
| 14 |
+
intent_encoder_path = "models/intent_classes.npy"
|
| 15 |
+
ner_encoder_path = "models/ner_classes.npy"
|
| 16 |
|
| 17 |
def predict_function(text):
|
| 18 |
label_encoder = LabelEncoder()
|