Spaces:
Running
Running
Update utils.py
Browse files
utils.py
CHANGED
@@ -12,7 +12,7 @@ from bs4 import BeautifulSoup
|
|
12 |
with open("config.yaml", "r") as file:
|
13 |
params = yaml.safe_load(file)
|
14 |
|
15 |
-
access_token = params['HF_TOKEN']
|
16 |
|
17 |
def remove_accents(input_str):
|
18 |
text_no_accents = unidecode(input_str)
|
@@ -55,7 +55,7 @@ with open("config.yaml", "r") as file:
|
|
55 |
params = yaml.safe_load(file)
|
56 |
|
57 |
text_bc_model_path = params["TEXT_BC_MODEL_PATH"]
|
58 |
-
text_bc_tokenizer = AutoTokenizer.from_pretrained(text_bc_model_path
|
59 |
|
60 |
|
61 |
def len_validator(text):
|
|
|
12 |
with open("config.yaml", "r") as file:
|
13 |
params = yaml.safe_load(file)
|
14 |
|
15 |
+
# access_token = params['HF_TOKEN']
|
16 |
|
17 |
def remove_accents(input_str):
|
18 |
text_no_accents = unidecode(input_str)
|
|
|
55 |
params = yaml.safe_load(file)
|
56 |
|
57 |
text_bc_model_path = params["TEXT_BC_MODEL_PATH"]
|
58 |
+
text_bc_tokenizer = AutoTokenizer.from_pretrained(text_bc_model_path)
|
59 |
|
60 |
|
61 |
def len_validator(text):
|