Skip to content

Commit

Permalink
change table unitest dir
Browse files Browse the repository at this point in the history
  • Loading branch information
quyuan committed Nov 11, 2024
1 parent 4c9c555 commit 78b0268
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unittest/test_table/test_tablemaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

class TestppTableModel(unittest.TestCase):
def test_image2html(self):
img = Image.open("tests/test_table/assets/table.jpg")
img = Image.open("tests/unittest/test_table/assets/table.jpg")
# 修改table模型路径
config = {"device": "cuda",
"model_dir": "D:/models/PDF-Extract-Kit/models/TabRec/TableMaster"}
"model_dir": "/home/quyuan/.cache/modelscope/hub/opendatalab/PDF-Extract-Kit/models/TabRec/TableMaster"}
table_model = ppTableModel(config)
res = table_model.img2html(img)
# 验证生成的 HTML 是否符合预期
Expand Down

0 comments on commit 78b0268

Please sign in to comment.