kirchik47 commited on
Commit
31e18a7
·
1 Parent(s): 025ec41

Added gradio_input parameter for testing

Browse files
Files changed (1) hide show
  1. main_got.py +1 -1
main_got.py CHANGED
@@ -22,5 +22,5 @@ def extract_text(image_path):
22
 
23
  image_file = image_path
24
  # Extract text
25
- res = model.chat(tokenizer, image_file, ocr_type='ocr')
26
  return res
 
22
 
23
  image_file = image_path
24
  # Extract text
25
+ res = model.chat(tokenizer, image_file, ocr_type='ocr', gradio_input=True)
26
  return res