Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -25,6 +25,7 @@ def run_GOT(image_array, got_mode, fine_grained_mode="", ocr_color="", ocr_box="
|
|
25 |
elif got_mode == "format fine-grained OCR":
|
26 |
res = model.chat(tokenizer, image, ocr_type='format', ocr_box=ocr_box, ocr_color=ocr_color, render=True, save_render_file=html_file)
|
27 |
|
|
|
28 |
if "format" in got_mode:
|
29 |
with open(html_file, 'r') as f:
|
30 |
demo_html = f.read()
|
|
|
25 |
elif got_mode == "format fine-grained OCR":
|
26 |
res = model.chat(tokenizer, image, ocr_type='format', ocr_box=ocr_box, ocr_color=ocr_color, render=True, save_render_file=html_file)
|
27 |
|
28 |
+
print("res:\n", res)
|
29 |
if "format" in got_mode:
|
30 |
with open(html_file, 'r') as f:
|
31 |
demo_html = f.read()
|