akhil-vaidya commited on
Commit
5607113
1 Parent(s): 9968fb2

same again

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -72,8 +72,8 @@ def get_quen_op(image_file, model, processor):
72
  return f"An error occurred: {str(e)}"
73
 
74
  @st.cache_data
75
- def get_text(image_file, _model, tokenizer):
76
- res = _model.chat(tokenizer, image_file, ocr_type='ocr')
77
  return res
78
 
79
  def highlight_text(text, search_term):
 
72
  return f"An error occurred: {str(e)}"
73
 
74
  @st.cache_data
75
+ def get_text(image_file, _model, _tokenizer):
76
+ res = _model.chat(_tokenizer, image_file, ocr_type='ocr')
77
  return res
78
 
79
  def highlight_text(text, search_term):