AlGe commited on
Commit
8907f87
·
verified ·
1 Parent(s): 32a87d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- tokenizer_ext.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
 
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