Ho-ot commited on
Commit
11a48fe
·
verified ·
1 Parent(s): 1c97482

Update ocr.py

Browse files
Files changed (1) hide show
  1. ocr.py +1 -1
ocr.py CHANGED
@@ -15,7 +15,7 @@ import textwrap
15
  @st.cache_resource
16
  def load_model():
17
  model_path = "Ho-ot/pegasus-fyp"
18
- tokenizer = AutoTokenizer.from_pretrained(model_path)
19
  model = AutoModelForSeq2SeqLM.from_pretrained(model_path)
20
  return tokenizer, model
21
 
 
15
  @st.cache_resource
16
  def load_model():
17
  model_path = "Ho-ot/pegasus-fyp"
18
+ tokenizer = AutoTokenizer.from_pretrained(model_path,use_fast=False)
19
  model = AutoModelForSeq2SeqLM.from_pretrained(model_path)
20
  return tokenizer, model
21