Skip to content

Commit

Permalink
fix type hint in PromptPipeline.__init__ (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-simmons authored Jun 8, 2023
1 parent 0dce99d commit 404217b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trlx/pipeline/offline_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class PromptPipeline(BasePipeline):

def __init__(
self,
prompts: Union[Dict[str, Any], List[str]],
prompts: Union[List[Dict[str, Any]], List[str]],
max_prompt_length: int,
tokenizer: PreTrainedTokenizer,
add_special_tokens: bool = False,
Expand Down

0 comments on commit 404217b

Please sign in to comment.