bowphs commited on
Commit
c3e5361
·
verified ·
1 Parent(s): 9fa77c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,10 +36,10 @@ MODEL_MAX_LENGTH = 512
36
  AUTH_TOKEN = os.environ.get("TOKEN") or True
37
  # PoS
38
  pos_tokenizer = AutoTokenizer.from_pretrained(
39
- MODEL_PATHS["POS"], model_max_length=MODEL_MAX_LENGTH, use_auth_token=AUTH_TOKEN, revision="8bd84df2bcaee089307fd604c80139a34ac71f12",
40
  )
41
  pos_model = AutoModelForTokenClassification.from_pretrained(
42
- MODEL_PATHS["POS"], use_auth_token=AUTH_TOKEN, revision="8bd84df2bcaee089307fd604c80139a34ac71f12",
43
  )
44
 
45
  # Lemmatization
 
36
  AUTH_TOKEN = os.environ.get("TOKEN") or True
37
  # PoS
38
  pos_tokenizer = AutoTokenizer.from_pretrained(
39
+ MODEL_PATHS["POS"], model_max_length=MODEL_MAX_LENGTH, use_auth_token=AUTH_TOKEN, revision="11437fc1ba7ecd7df9d292d5f91f36fe55cdae3d",
40
  )
41
  pos_model = AutoModelForTokenClassification.from_pretrained(
42
+ MODEL_PATHS["POS"], use_auth_token=AUTH_TOKEN, revision="11437fc1ba7ecd7df9d292d5f91f36fe55cdae3d",
43
  )
44
 
45
  # Lemmatization