Skip to content

Commit

Permalink
Typing II.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladd-bit committed Feb 1, 2024
1 parent 8a71b8d commit 4b21da1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion medcat_service/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def setup_logging():
if not handler_exists:
root_logger.addHandler(log_handler)


def create_app():
"""
Creates the Flask application using the factory method
Expand All @@ -52,7 +53,6 @@ def configure(binder):
binder.bind(MedCatProcessor, to=MedCatProcessor, scope=injector.singleton)
binder.bind(NlpService, to=MedCatService, scope=injector.singleton)


FlaskInjector(app=app, modules=[configure])

# remember to return the app
Expand Down
2 changes: 0 additions & 2 deletions medcat_service/nlp_processor/medcat_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,6 @@ def _create_cat(self):

cat = CAT(cdb=cdb, config=config, vocab=vocab, meta_cats=meta_models)

self.app_model = config

return cat

# helper generator functions to avoid multiple copies of data
Expand Down

0 comments on commit 4b21da1

Please sign in to comment.