Added gradio_input parameter for testing
Browse files- 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
|