In the HTML to JSON Example, parameters are missing.
#7
by
CH-UP
- opened
In the example of "HTML to JSON Example", is the parameter "tokenizer=tokenizer" missing in "input_prompt = create_prompt(html, schema=schema)"? Otherwise, there will be problems during the reasoning process:
Traceback (most recent call last):
File "/root/shared-nvme/jinaai_test.py", line 118, in
input_prompt = create_prompt(html, schema=schema)
File "/root/shared-nvme/jinaai_test.py", line 76, in create_prompt
return tokenizer.apply_chat_template(
AttributeError: 'NoneType' object has no attribute 'apply_chat_template'
After adding the parameter "input_prompt = create_prompt(html, tokenizer=tokenizer ,schema=schema)", it works perfectly.