Soufianesejjari commited on
Commit
c3e50d5
2 Parent(s): 28721ba b0a98d8

Merge branch 'main' of https://huggingface.co/spaces/Soufianesejjari/MDS_RamadanWordPrediction

Browse files
Files changed (2) hide show
  1. Dockerfile +9 -8
  2. requirements.txt +1 -1
Dockerfile CHANGED
@@ -1,11 +1,12 @@
1
- # Utilisez l'image de base Hugging Face Spaces
2
- FROM huggingface/transformers-env:4.11.3
3
 
4
- # Copiez les fichiers de l'application
5
- COPY ./app /app
6
 
7
- # Installation des dépendances Python
8
- RUN pip install -r /app/requirements.txt
9
 
10
- # Commande pour exécuter l'application Flask
11
- CMD ["python", "/app/model.py"]
 
 
 
 
 
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
- pickle
4
  uvicorn
 
1
  Flask
2
  tensorflow
3
+
4
  uvicorn