Spaces:
Sleeping
Sleeping
Yurii Paniv
commited on
Commit
•
ff8cb24
1
Parent(s):
c1215a5
Change model handling
Browse files- .dockerignore +0 -1
- .github/workflows/publish-docker.yml +7 -0
- Dockerfile +2 -1
- README.md +2 -1
.dockerignore
CHANGED
@@ -4,5 +4,4 @@ __pycache__/
|
|
4 |
.git
|
5 |
LICENSE
|
6 |
README.md
|
7 |
-
*.tflite
|
8 |
.github/
|
|
|
4 |
.git
|
5 |
LICENSE
|
6 |
README.md
|
|
|
7 |
.github/
|
.github/workflows/publish-docker.yml
CHANGED
@@ -8,6 +8,13 @@ jobs:
|
|
8 |
steps:
|
9 |
- name: Check out the repo
|
10 |
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
- name: Push to GitHub Packages
|
12 |
uses: docker/build-push-action@v1
|
13 |
with:
|
|
|
8 |
steps:
|
9 |
- name: Check out the repo
|
10 |
uses: actions/checkout@v2
|
11 |
+
- name: Download model file
|
12 |
+
uses: dsaltares/fetch-gh-release-asset@master
|
13 |
+
with:
|
14 |
+
repo: " robinhad/voice-recognition-ua"
|
15 |
+
version: "latest"
|
16 |
+
file: "uk.tflite"
|
17 |
+
token: ${{ secrets.YOUR_TOKEN }}
|
18 |
- name: Push to GitHub Packages
|
19 |
uses: docker/build-push-action@v1
|
20 |
with:
|
Dockerfile
CHANGED
@@ -1,6 +1,7 @@
|
|
|
|
|
|
1 |
FROM python:3.7
|
2 |
COPY . /app
|
3 |
WORKDIR /app
|
4 |
-
RUN wget https://github.com/robinhad/voice-recognition-ua/releases/download/0.1/uk.tflite
|
5 |
RUN pip install -r requirements.txt
|
6 |
CMD ["uwsgi", "app.ini"]
|
|
|
1 |
+
# make sure to download https://github.com/robinhad/voice-recognition-ua/releases/download/0.1/uk.tflite
|
2 |
+
# before build
|
3 |
FROM python:3.7
|
4 |
COPY . /app
|
5 |
WORKDIR /app
|
|
|
6 |
RUN pip install -r requirements.txt
|
7 |
CMD ["uwsgi", "app.ini"]
|
README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
# voice-recognition-ua
|
2 |
-
|
|
|
3 |
```
|
4 |
export FLASK_APP=main.py
|
5 |
flask run
|
|
|
1 |
# voice-recognition-ua
|
2 |
+
# make sure to download https://github.com/robinhad/voice-recognition-ua/releases/download/0.1/uk.tflite
|
3 |
+
# before build
|
4 |
```
|
5 |
export FLASK_APP=main.py
|
6 |
flask run
|