Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
breezedeus committed Nov 16, 2024
1 parent 7fce2f2 commit 68363d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_pix2text.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_recognize_pdf():
),
)
total_config = {
'layout': {'scores_thresh': 0.45},
'layout': {},
'text_formula': text_formula_config,
}
p2t = Pix2Text.from_config(total_configs=total_config, enable_formula=True)
Expand All @@ -51,10 +51,10 @@ def test_recognize_pdf():

def test_recognize_page():
# img_fp = './docs/examples/formula.jpg'
img_fp = './docs/examples/page3.png'
img_fp = './docs/examples/page2.png'
# img_fp = './docs/examples/mixed.jpg'
total_config = {
'layout': {'scores_thresh': 0.45},
'layout': {},
'text_formula': {
'formula': {
'model_name': 'mfr',
Expand All @@ -68,7 +68,7 @@ def test_recognize_page():
img_fp,
page_id='test_page_1',
title_contain_formula=False,
text_contain_formula=False,
text_contain_formula=True,
save_debug_res='./outputs',
)
# print(out_page)
Expand Down

0 comments on commit 68363d9

Please sign in to comment.