Skip to content

Commit d3db25c

Browse files
committed
migration
1 parent 3e51d9d commit d3db25c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

celery_app/tasks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def kpe_task(lang: str, texts: List[str], component_cfg: Dict = {}):
1515
"""Process a batch of articles and return the Keyphrases predicted by the
1616
given model. Each record in the data should have a key "text".
1717
"""
18+
logger.info('KPE task received')
1819

1920
# Check language availability
2021
if lang in LM_MAP.keys():

document/swagger.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ components:
6161
properties:
6262
text:
6363
type: string
64-
end:
65-
score: float
64+
score:
65+
type: float
6666
batch:
6767
type: object
6868
properties:
@@ -76,7 +76,7 @@ components:
7676
responsemodel:
7777
type: object
7878
properties:
79-
ner:
79+
kpe:
8080
type: array
8181
items:
8282
$ref: '#/components/schemas/batch'

0 commit comments

Comments
 (0)