Spaces:
Running
Running
Update predictors.py
Browse files- predictors.py +1 -1
predictors.py
CHANGED
@@ -37,7 +37,7 @@ mc_token_size = int(params["MC_TOKEN_SIZE"])
|
|
37 |
bc_token_size = int(params["BC_TOKEN_SIZE"])
|
38 |
bias_checker_model_name = params['BIAS_CHECKER_MODEL_PATH']
|
39 |
bias_corrector_model_name = params['BIAS_CORRECTOR_MODEL_PATH']
|
40 |
-
access_token = params['HF_TOKEN']
|
41 |
|
42 |
text_bc_tokenizer = AutoTokenizer.from_pretrained(text_bc_model_path, token=access_token)
|
43 |
text_bc_model = AutoModelForSequenceClassification.from_pretrained(text_bc_model_path, token=access_token).to(device)
|
|
|
37 |
bc_token_size = int(params["BC_TOKEN_SIZE"])
|
38 |
bias_checker_model_name = params['BIAS_CHECKER_MODEL_PATH']
|
39 |
bias_corrector_model_name = params['BIAS_CORRECTOR_MODEL_PATH']
|
40 |
+
# access_token = params['HF_TOKEN']
|
41 |
|
42 |
text_bc_tokenizer = AutoTokenizer.from_pretrained(text_bc_model_path, token=access_token)
|
43 |
text_bc_model = AutoModelForSequenceClassification.from_pretrained(text_bc_model_path, token=access_token).to(device)
|