Skip to content

Commit

Permalink
suppress iobes warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cjer committed Sep 5, 2021
1 parent 2dd0ac6 commit f4448f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions api_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
from operator import itemgetter
from itertools import groupby
import iobes
from logging import ERROR
iobes.LOGGER.setLevel(level=ERROR)
if SUPPRESS_IOBES_WARNINGS:
from logging import ERROR
iobes.LOGGER.setLevel(level=ERROR)

os.environ['CUDA_VISIBLE_DEVICES'] = ''

Expand Down
4 changes: 3 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@

YAP_API_HEADERS = {'content-type': 'application/json'}

MAX_THREADS_FASTAPI = 5
MAX_THREADS_FASTAPI = 5

SUPPRESS_IOBES_WARNINGS = False

0 comments on commit f4448f2

Please sign in to comment.