From 860b00a915284a160332344b723c744e91779b3f Mon Sep 17 00:00:00 2001 From: broCapang Date: Sat, 20 Apr 2024 03:52:23 +0800 Subject: [PATCH] inspect.getargspec() is deprecated in Python 3. replaced inspect.getargspec with inspect.getfullargspec --- malaya/supervised/huggingface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)