Skip to content

Commit

Permalink
migration
Browse files Browse the repository at this point in the history
  • Loading branch information
guokan-shang committed Mar 31, 2023
1 parent 3e51d9d commit d3db25c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions celery_app/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def kpe_task(lang: str, texts: List[str], component_cfg: Dict = {}):
"""Process a batch of articles and return the Keyphrases predicted by the
given model. Each record in the data should have a key "text".
"""
logger.info('KPE task received')

# Check language availability
if lang in LM_MAP.keys():
Expand Down
6 changes: 3 additions & 3 deletions document/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ components:
properties:
text:
type: string
end:
score: float
score:
type: float
batch:
type: object
properties:
Expand All @@ -76,7 +76,7 @@ components:
responsemodel:
type: object
properties:
ner:
kpe:
type: array
items:
$ref: '#/components/schemas/batch'
Expand Down

0 comments on commit d3db25c

Please sign in to comment.