Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
env:
AWS_REGION: ap-northeast-2
ECR_REPOSITORY: imfact-inferer
IMAGE_TAG: latest
IMAGE_TAG: dev
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}

jobs:
Expand Down
3 changes: 2 additions & 1 deletion imfact_batch_infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from concurrent.futures import ThreadPoolExecutor
import boto3
from tqdm import tqdm
from typing import Any, Dict

from imfact_infer import ImFactInferer

Expand All @@ -29,7 +30,7 @@ def init_inferer():
return _inferer


def process_single_article(article: dict):
def process_single_article(article: Dict[str, Any]) -> Dict[str, Any]:
inferer = init_inferer()
result = inferer.compute_news_reliability(article["title"], article["body"])
article["reliability_score"] = result["final_score"]
Expand Down