Spaces:
Paused
Paused
Abid
commited on
Commit
•
91c51c1
1
Parent(s):
0be2d22
requrement corrected
Browse files- Dockerfile +5 -3
- requirements.txt +11 -13
- requirements_heroku.txt +15 -0
Dockerfile
CHANGED
@@ -4,12 +4,14 @@ FROM python:3.9.10
|
|
4 |
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
COPY
|
8 |
|
9 |
-
RUN pip install -r
|
10 |
|
11 |
COPY /app /app
|
12 |
COPY /examples /examples
|
13 |
|
14 |
-
|
|
|
|
|
15 |
CMD python /app/app_savta.py
|
|
|
4 |
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
COPY requirements_heroku.txt requirements_heroku.txt
|
8 |
|
9 |
+
RUN pip install -r requirements_heroku.txt
|
10 |
|
11 |
COPY /app /app
|
12 |
COPY /examples /examples
|
13 |
|
14 |
+
CMD export GRADIO_SERVER_NAME=0.0.0.0
|
15 |
+
CMD export GRADIO_SERVER_PORT="$PORT"
|
16 |
+
|
17 |
CMD python /app/app_savta.py
|
requirements.txt
CHANGED
@@ -1,15 +1,13 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
tables
|
12 |
fastapi
|
13 |
gradio
|
14 |
-
uvicorn
|
15 |
-
jinja2
|
|
|
1 |
+
dvc==1.11.15
|
2 |
+
fastai==2.2.5
|
3 |
+
torch==1.7.0
|
4 |
+
h5py==2.10.0
|
5 |
+
opencv-python==4.4.0.42
|
6 |
+
tqdm==4.52.0
|
7 |
+
numpy==1.19.4
|
8 |
+
scikit-learn==0.23.2
|
9 |
+
dagshub==0.1.6
|
10 |
+
tables==3.6.1
|
|
|
11 |
fastapi
|
12 |
gradio
|
13 |
+
uvicorn
|
|
requirements_heroku.txt
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
-f https://download.pytorch.org/whl/cpu/torch_stable.html
|
2 |
+
dvc
|
3 |
+
fastai
|
4 |
+
torch==1.10.2+cpu
|
5 |
+
h5py
|
6 |
+
opencv-python-headless
|
7 |
+
tqdm
|
8 |
+
numpy
|
9 |
+
scikit-learn
|
10 |
+
dagshub
|
11 |
+
tables
|
12 |
+
fastapi
|
13 |
+
gradio
|
14 |
+
uvicorn
|
15 |
+
jinja2
|