Skip to content

Commit 1362725

Browse files
committed
what's going on
1 parent d80fa34 commit 1362725

5 files changed

Lines changed: 9 additions & 6 deletions

File tree

.docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN apt-get update && \
1313
# Install requirements
1414
COPY requirements.txt /workspace/requirements.txt
1515
RUN pip install --no-cache-dir -r /workspace/requirements.txt
16-
RUN pip install torch==2.1.2 torchvision --index-url https://download.pytorch.org/whl/cpu
16+
RUN pip install torch==2.4.0 torchvision --index-url https://download.pytorch.org/whl/cpu
1717

1818

1919
RUN playwright install

src/justinsight/celery.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
# "args": (),
2424
# },
2525

26-
"check-BBCfeed-every-5-minutes": {
27-
"task": "justinsight.tasks.bbcLogger_task",
28-
"schedule": 5.0,
29-
"args": (),
30-
},
26+
# "check-BBCfeed-every-5-minutes": {
27+
# "task": "justinsight.tasks.bbcLogger_task",
28+
# "schedule": 5.0,
29+
# "args": (),
30+
# },
3131

3232
# "check-CBSfeed-every-5-minutes": {
3333
# "task": "justinsight.tasks.cbsLogger_task",

src/justinsight/tasks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def runNER_task(entry_id):
9090
@shared_task
9191
def ner_task(article_id):
9292
# Process article with NER results
93+
print("In the NER task")
9394
core = NERCore()
9495
print("Actually trying to do NER!!!")
9596
core.process_article(article_id)

src/nlp/base_core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def load_pipeline(self):
2020
if self.task == "ner" and self.aggregation_strategy:
2121
return pipeline(self.task, model=self.model_name, aggregation_strategy=self.aggregation_strategy)
2222

23+
print(f"pipeline loading...")
2324
return pipeline(self.task, model=self.model_name)
2425

2526
def process_article(self, article_id: str):

src/nlp/ner_core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
class NERCore(BaseCore):
66
def __init__(self):
7+
print("constructing NER Core instance")
78
super().__init__(
89
task="ner",
910
model_name="dslim/bert-base-NER",

0 commit comments

Comments
 (0)