Spaces:
Sleeping
Sleeping
Change ports
Browse files- Dockerfile +3 -3
- README.md +38 -1
Dockerfile
CHANGED
|
@@ -19,9 +19,9 @@ RUN [ "python", "-c", "import nltk; nltk.download('wordnet', download_dir='/usr/
|
|
| 19 |
#
|
| 20 |
COPY src /
|
| 21 |
|
| 22 |
-
# ---- Listen to port
|
| 23 |
#
|
| 24 |
-
EXPOSE
|
| 25 |
|
| 26 |
# ---- Define the working dir in the contener
|
| 27 |
#
|
|
@@ -29,4 +29,4 @@ WORKDIR /
|
|
| 29 |
|
| 30 |
# ---- Commande to start the app
|
| 31 |
# ----
|
| 32 |
-
CMD ["gunicorn", "--bind", "0.0.0.0:
|
|
|
|
| 19 |
#
|
| 20 |
COPY src /
|
| 21 |
|
| 22 |
+
# ---- Listen to port 7860
|
| 23 |
#
|
| 24 |
+
EXPOSE 7860
|
| 25 |
|
| 26 |
# ---- Define the working dir in the contener
|
| 27 |
#
|
|
|
|
| 29 |
|
| 30 |
# ---- Commande to start the app
|
| 31 |
# ----
|
| 32 |
+
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "main:app"]
|
README.md
CHANGED
|
@@ -8,4 +8,41 @@ pinned: false
|
|
| 8 |
license: mit
|
| 9 |
---
|
| 10 |
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
license: mit
|
| 9 |
---
|
| 10 |
|
| 11 |
+
# Sign Language Application
|
| 12 |
+
|
| 13 |
+
## Hugging Face Spaces Repository
|
| 14 |
+
|
| 15 |
+
This Sign Language recognition application is deployed on Hugging Face Spaces using Docker:
|
| 16 |
+
|
| 17 |
+
- **Hugging Face Spaces Repository**: [project-sign-language/Sign_language](https://huggingface.co/spaces/project-sign-language/Sign_language)
|
| 18 |
+
|
| 19 |
+
## GitHub Repository
|
| 20 |
+
|
| 21 |
+
The source code for this application is also available on GitHub:
|
| 22 |
+
|
| 23 |
+
- **GitHub Repository**: [ShaymaEssghaier/Sign_language](https://github.com/ShaymaEssghaier/Sign_language)
|
| 24 |
+
|
| 25 |
+
## Docker Repository
|
| 26 |
+
|
| 27 |
+
The Docker image used to deploy this application is also available on Docker Hub:
|
| 28 |
+
|
| 29 |
+
- **Docker Repository**: [remifigea/sign_language](https://hub.docker.com/r/remifigea/sign_language)
|
| 30 |
+
|
| 31 |
+
## Dockerfiles
|
| 32 |
+
|
| 33 |
+
### Dockerfile
|
| 34 |
+
|
| 35 |
+
Use this Dockerfile to run the application in local development mode.
|
| 36 |
+
|
| 37 |
+
To build and run the image locally:
|
| 38 |
+
```bash
|
| 39 |
+
docker build -f Dockerfile -t my-app:local .
|
| 40 |
+
docker run -p 5000:5000 my-app:local
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
### Dockerfile.production
|
| 44 |
+
|
| 45 |
+
Use this Dockerfile to run the application in production mode. This is the one used on the Hugging Face Hub repository after renaming it to Dockerfile.
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
|