Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ auth_token = os.environ['HF_TOKEN']
|
|
| 8 |
# Load the tokenizer and models for the first pipeline
|
| 9 |
tokenizer_bin = AutoTokenizer.from_pretrained("AlGe/deberta-v3-large_token", token=auth_token)
|
| 10 |
model_bin = AutoModelForTokenClassification.from_pretrained("AlGe/deberta-v3-large_token", token=auth_token)
|
| 11 |
-
|
| 12 |
pipe_bin = pipeline("ner", model=model_bin, tokenizer=tokenizer_bin)
|
| 13 |
|
| 14 |
# Load the tokenizer and models for the second pipeline
|
|
|
|
| 8 |
# Load the tokenizer and models for the first pipeline
|
| 9 |
tokenizer_bin = AutoTokenizer.from_pretrained("AlGe/deberta-v3-large_token", token=auth_token)
|
| 10 |
model_bin = AutoModelForTokenClassification.from_pretrained("AlGe/deberta-v3-large_token", token=auth_token)
|
| 11 |
+
tokenizer_bin.model_max_length = 512
|
| 12 |
pipe_bin = pipeline("ner", model=model_bin, tokenizer=tokenizer_bin)
|
| 13 |
|
| 14 |
# Load the tokenizer and models for the second pipeline
|