Skip to content

Commit

Permalink
security bot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakshmi-bashyam committed Sep 25, 2024
1 parent f1b9c78 commit 5e41dce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions annif/backend/xtransformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import logging
import os.path as osp
from sys import stdout
import sys
from typing import Any

import numpy as np
Expand Down Expand Up @@ -190,9 +190,9 @@ def _create_model(self, params, jobs):
self.info("Start training")
# enable progress
matcher.LOGGER.setLevel(logging.DEBUG)
matcher.LOGGER.addHandler(logging.StreamHandler(stream=stdout))
matcher.LOGGER.addHandler(logging.StreamHandler(stream=sys.stdout))
model.LOGGER.setLevel(logging.DEBUG)
model.LOGGER.addHandler(logging.StreamHandler(stream=stdout))
model.LOGGER.addHandler(logging.StreamHandler(stream=sys.stdout))
self._model = XTransformer.train(
MLProblemWithText(train_txts, train_y, X_feat=train_X),
clustering=None,
Expand Down

0 comments on commit 5e41dce

Please sign in to comment.