👍️[Update] Model : FutureWarningが出るのでignoreで対応
huggingface_hub\file_download.py:1150: FutureWarning: resume_download is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use force_download=True.
This commit is contained in:
@@ -7,6 +7,9 @@ from .translation_utils import ctranslate2_weights
|
||||
import ctranslate2
|
||||
import transformers
|
||||
|
||||
import warnings
|
||||
warnings.filterwarnings("ignore")
|
||||
|
||||
# Translator
|
||||
class Translator():
|
||||
def __init__(self):
|
||||
|
||||
Reference in New Issue
Block a user