Skip to content

Commit

Permalink
remove num_labels arg
Browse files Browse the repository at this point in the history
  • Loading branch information
laurahanu authored Oct 23, 2023
1 parent 754c119 commit ec3ea57
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion detoxify/detoxify.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def get_model_and_tokenizer(
model = model_class.from_pretrained(
pretrained_model_name_or_path=None,
config=huggingface_config_path or config,
num_labels=num_classes,
state_dict=state_dict,
local_files_only=huggingface_config_path is not None,
)
Expand Down

0 comments on commit ec3ea57

Please sign in to comment.