Skip to content

Commit

Permalink
Use the loaded model hash for usage monitor instead of recalculating it
Browse files Browse the repository at this point in the history
  • Loading branch information
mart-r committed Aug 22, 2024
1 parent c82ad4b commit 62e603a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion medcat/cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def __init__(self,
self._rel_cats = rel_cats
self._addl_ner = addl_ner if isinstance(addl_ner, list) else [addl_ner]
self._create_pipeline(self.config)
self.usage_monitor = UsageMonitor(self.get_hash(), self.config.general.usage_monitor)
self.usage_monitor = UsageMonitor(self.config.version.id, self.config.general.usage_monitor)

def _create_pipeline(self, config: Config):
# Set log level
Expand Down

0 comments on commit 62e603a

Please sign in to comment.