Skip to content

Commit c3fd15e

Browse files
author
Matteo Omenetti [email protected]
committed
Merge branch 'code_equation_model' of https://github.com/DS4SD/docling-ibm-models into code_equation_model
2 parents c1e1cff + 4845b35 commit c3fd15e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

demo/demo_code_formula_predictor.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,11 @@ def main(args):
7575
# Ensure the viz dir
7676
Path(viz_dir).mkdir(parents=True, exist_ok=True)
7777

78-
# ! TODO: change this
7978
# Download models from HF
8079
download_path = snapshot_download(repo_id="ds4sd/CodeFormula")
81-
artifact_path = os.path.join(download_path, "")
82-
# artifact_path = "/dccstor/doc_fig_class/DocFM-Vision-Pretrainer/Vary-master/checkpoints_new_code_equation_model/checkpoint-7000/"
8380

84-
# Test the LayoutPredictor
85-
demo(logger, artifact_path, device, num_threads, image_dir, viz_dir)
81+
# Test the Code+Equation model
82+
demo(logger, download_path, device, num_threads, image_dir, viz_dir)
8683

8784

8885
if __name__ == "__main__":

0 commit comments

Comments
 (0)