Spaces:
Running
Running
Update app.py
Browse files
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="402ab7d25f49e83a67b955ebbc172b5459fbd939",
|
40 |
)
|
41 |
pos_model = AutoModelForTokenClassification.from_pretrained(
|
42 |
-
MODEL_PATHS["POS"], use_auth_token=AUTH_TOKEN, revision="402ab7d25f49e83a67b955ebbc172b5459fbd939",
|
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="402ab7d25f49e83a67b955ebbc172b5459fbd939",
|
40 |
)
|
41 |
pos_model = AutoModelForTokenClassification.from_pretrained(
|
42 |
+
MODEL_PATHS["POS"], use_auth_token=AUTH_TOKEN, #revision="402ab7d25f49e83a67b955ebbc172b5459fbd939",
|
43 |
)
|
44 |
|
45 |
# Lemmatization
|