Skip to content

Commit

Permalink
fix: skip glm model downloads (#322)
Browse files Browse the repository at this point in the history
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
  • Loading branch information
dolfim-ibm authored Nov 13, 2024
1 parent 2c0c439 commit c9341bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docling/models/ds_glm_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ class GlmModel:
def __init__(self, options: GlmOptions):
self.options = options

load_pretrained_nlp_models()
if self.options.model_names != "":
load_pretrained_nlp_models()
self.model = init_nlp_model(model_names=self.options.model_names)

def _to_legacy_document(self, conv_res) -> DsDocument:
Expand Down

0 comments on commit c9341bf

Please sign in to comment.