Spaces:
Runtime error
Runtime error
Soufianesejjari
commited on
Merge branch 'main' of https://huggingface.co/spaces/Soufianesejjari/MDS_RamadanWordPrediction
Browse files- Dockerfile +9 -8
- requirements.txt +1 -1
Dockerfile
CHANGED
@@ -1,11 +1,12 @@
|
|
1 |
-
|
2 |
-
FROM huggingface/transformers-env:4.11.3
|
3 |
|
4 |
-
|
5 |
-
COPY ./app /app
|
6 |
|
7 |
-
|
8 |
-
RUN pip install -r /app/requirements.txt
|
9 |
|
10 |
-
|
11 |
-
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9
|
|
|
2 |
|
3 |
+
WORKDIR /code
|
|
|
4 |
|
5 |
+
COPY ./requirements.txt /code/requirements.txt
|
|
|
6 |
|
7 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
+
|
9 |
+
COPY ./app /code
|
10 |
+
|
11 |
+
|
12 |
+
CMD ["uvicorn", "model:app", "--host", "0.0.0.0", "--port", "7860"]
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
Flask
|
2 |
tensorflow
|
3 |
-
|
4 |
uvicorn
|
|
|
1 |
Flask
|
2 |
tensorflow
|
3 |
+
|
4 |
uvicorn
|