Remove set_access_token usage + fail tests if FutureWarning (#22051)

* Remove set_access_token usage + fail tests if FutureWarning

* do not fail on FutureWarning in CI

---------

Co-authored-by: testbot <lucainp@hf.co>
This commit is contained in:
Lucain
2023-03-09 15:23:48 +01:00
committed by GitHub
parent 684774306d
commit 923110b74f
11 changed files with 11 additions and 22 deletions

View File

@@ -21,7 +21,7 @@ from pathlib import Path
import datasets
import numpy as np
from huggingface_hub import HfFolder, Repository, create_repo, delete_repo, set_access_token
from huggingface_hub import HfFolder, Repository, create_repo, delete_repo
from requests.exceptions import HTTPError
from transformers import (
@@ -759,7 +759,6 @@ class DynamicPipelineTester(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls._token = TOKEN
set_access_token(TOKEN)
HfFolder.save_token(TOKEN)
@classmethod