Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
flokapi committed Sep 17, 2024
1 parent 56ee86e commit c2476de
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ jobs:
# docker build -t img_cls:latest .
# docker run -p 8000:8000 -d --name img_cls_cont img_cls:latest
docker run -p 8000:8000 -d --name img_cls_cont ${{ secrets.DOCKER_HUB_USERNAME }}/img_cls:latest
docker pull ${{secrets.DOCKER_HUB_USERNAME}}/img_cls:latest
docker run -p 8000:8000 -d --name img_cls_cont ${{secrets.DOCKER_HUB_USERNAME}}/img_cls:latest
docker image prune -af
# echo ${{secrets.PROD_PASSWORD}} | sudo -S systemctl restart image-classification
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ node_modules/*

static/*
!static/.gitkeep
!static/custom_styles.css

files/*
!files/.gitkeep
Expand Down
5 changes: 4 additions & 1 deletion app/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{% extends "base.html" %} {% block content %}
<div>
<p class="text-3xl font-bold mb-12">Home</p>
<div>This is a simple image classification app using tensorflow.</div>
<div>
This is a simple image classification app using tensorflow, FastAPI and
htmx.
</div>
</div>
{% endblock %}
6 changes: 5 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ fonttools==4.53.1
gast==0.6.0
google-pasta==0.2.0
grpcio==1.66.1
gunicorn==23.0.0
h11==0.14.0
h5py==3.11.0
idna==3.9
iniconfig==2.0.0
Jinja2==3.1.4
keras==3.5.0
kiwisolver==1.4.7
Expand All @@ -33,12 +35,14 @@ opt-einsum==3.3.0
optree==0.12.1
packaging==24.1
pillow==10.4.0
pluggy==1.5.0
protobuf==4.25.4
pydantic==2.9.1
pydantic-settings==2.5.2
pydantic_core==2.23.3
Pygments==2.18.0
pyparsing==3.1.4
pytest==8.3.3
python-dateutil==2.9.0.post0
python-dotenv==1.0.1
python-multipart==0.0.9
Expand All @@ -56,4 +60,4 @@ urllib3==2.2.3
uvicorn==0.30.6
Werkzeug==3.0.4
wheel==0.44.0
wrapt==1.16.0
wrapt==1.16.0

0 comments on commit c2476de

Please sign in to comment.