Skip to content

Commit

Permalink
8693a0pwy: only use CPU medcat, don't cache deps from pip
Browse files Browse the repository at this point in the history
  • Loading branch information
tomolopolis committed Dec 8, 2023
1 parent 368bab9 commit 54dfe0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RUN npm install && npm run build
# Install requirements for backend
WORKDIR /home/
RUN pip install pip --upgrade
RUN pip install -r requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
ARG SPACY_MODELS="en_core_web_md"
RUN for SPACY_MODEL in ${SPACY_MODELS}; do python -m spacy download ${SPACY_MODEL}; done

Expand Down
2 changes: 1 addition & 1 deletion webapp/api/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ class ProjectMetrics(models.Model):
report_name = models.TextField(help_text='A user specified report name that should be more user friendly than '
'the generated one')
report = models.FileField(help_text='the outputted metrics for configured')
projects = models.ManyToManyField('ProjectAnnotateEntities', null=True, blank=True)
projects = models.ManyToManyField('ProjectAnnotateEntities', blank=True)

def __str__(self):
return f'generated report name: {self.report_name}, user specified report name:f{self.report_name}'
Expand Down
1 change: 1 addition & 0 deletions webapp/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
--extra-index-url https://download.pytorch.org/whl/cpu/
uwsgi~=2.0
Django~=2.2
django-filter~=2.4
Expand Down

0 comments on commit 54dfe0f

Please sign in to comment.