diff --git a/malaya/supervised/huggingface.py b/malaya/supervised/huggingface.py index 725584d1..19d694d2 100644 --- a/malaya/supervised/huggingface.py +++ b/malaya/supervised/huggingface.py @@ -19,7 +19,7 @@ def load( f'model not supported, please check supported models from `{path}.available_huggingface`.' ) - args = inspect.getargspec(class_model) + args = inspect.getfullargspec(class_model) for k, v in additional_parameters.items(): if k in args.args: kwargs[k] = available_huggingface[model].get(v)