mychen76 commited on
Commit
aa3f36b
1 Parent(s): acabcec

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -61,6 +61,7 @@ Don't make up value not in the Input. Output must be a well-formed JSON object.`
61
  ```
62
 
63
  # Load model directly
 
64
  from transformers import AutoTokenizer, AutoModelForCausalLM
65
 
66
  tokenizer = AutoTokenizer.from_pretrained("mychen76/mistral7b_ocr_to_json_v1")
@@ -80,4 +81,4 @@ with torch.inference_mode():
80
  outputs = model.generate(**inputs, max_new_tokens=512)
81
  result_text = tokenizer.batch_decode(outputs)[0]
82
  print(result_text)
83
-
 
61
  ```
62
 
63
  # Load model directly
64
+ ```python
65
  from transformers import AutoTokenizer, AutoModelForCausalLM
66
 
67
  tokenizer = AutoTokenizer.from_pretrained("mychen76/mistral7b_ocr_to_json_v1")
 
81
  outputs = model.generate(**inputs, max_new_tokens=512)
82
  result_text = tokenizer.batch_decode(outputs)[0]
83
  print(result_text)
84
+ ```