Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiionutdamian committed Mar 20, 2024
1 parent f718fed commit f2695ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Dockerfile_monitor
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM aidamian/base_fastapi:latest
WORKDIR /test_app

RUN pip3 install torch --index-url https://download.pytorch.org/whl/cpu
RUN pip install --no-cache transformers scipy psycopg2-binary redis
RUN pip install --no-cache transformers scipy psycopg2-binary redis pillow

# basic stuff
ADD src/mixins ./mixins/
Expand Down
4 changes: 2 additions & 2 deletions app/src/monitor/monitor_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def _update_cache(self, model_type, model_name : str, model):
result = self.redis_sethash("models", model_type, model_name)
if result:
self.P(f"Cache update: {model_type} - {model_name}")
labels = model.config.id2label
self.P(f"Model labels: {labels}")
info = model.config
self.P(f"Model config: {info}")
return result

def set_model(self, model_type: str, model_name: str):
Expand Down

0 comments on commit f2695ed

Please sign in to comment.