mirror of
https://github.com/web-arena-x/webarena.git
synced 2026-02-06 11:16:53 +00:00
fix typo
This commit is contained in:
parent
741292e1d2
commit
1ee1ea4800
@ -27,10 +27,10 @@ class PromptConstructor(object):
|
|||||||
lm_config: lm_config.LMConfig,
|
lm_config: lm_config.LMConfig,
|
||||||
tokenizer: Tokenizer,
|
tokenizer: Tokenizer,
|
||||||
):
|
):
|
||||||
self.instrction_path = Path(instruction_path)
|
self.instruction_path = Path(instruction_path)
|
||||||
self.obs_modality = "text"
|
self.obs_modality = "text"
|
||||||
self.lm_config = lm_config
|
self.lm_config = lm_config
|
||||||
instruction = json.load(open(self.instrction_path))
|
instruction = json.load(open(self.instruction_path))
|
||||||
instruction["examples"] = [tuple(e) for e in instruction["examples"]]
|
instruction["examples"] = [tuple(e) for e in instruction["examples"]]
|
||||||
self.instruction: Instruction = instruction
|
self.instruction: Instruction = instruction
|
||||||
self.tokenizer = tokenizer
|
self.tokenizer = tokenizer
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user