Replacing your emotions or signs you do with emojis
These instructions will get you a copy of the code up and running on your local machine for development purposes and playing around 😂 and testing purposes. Deployment will focus on one of the available platforms.
Things you will need to bring the project up on your local machine
Docker (Not necessarily but adviced)
Python3
Text editor
Web browser
A step by step series of getting a development env running on your local machine
mkdir Emoji
cd Emoji
virtualenv --no-site-packages Venv
Venv\Scripts\activate
git clone https://github.com/0x6f736f646f/Emojidetection.git
cd Emojidetection
mkdir Emoji
cd Emoji
virtualenv --no-site-packages Venv
.Venv/bin/activate
git clone https://github.com/0x6f736f646f/Emojidetection.git
cd Emojidetection
pip install -r requirements
python3 app.py
docker build -t emojidetection:1.0.1 .
- -t is to tag the image being built
- emojidetection is the image name your can replace it with your own image name
- 1.0.1 is the version
docker run --name emoji --restart=always -d -p 8081:5000 emojidetection:1.0.1 python3 app.py
- --name gives the container a name
- --restart always restart when it goes down
- -d is running it as a daemon
- -p is for port mapping (We are mapping 5000 from docker container to 8081 to our localhost)
- emojidetection this is the image name we built
- 1.0 this is the version of the image we built
- python3 app.py this is passing a command to the container
docker-compose up
- up to run the images
Find your docker ip
docker-machine.exe ip
Then go to http:// docker-machine ip:8081
Go to http://localhost:8081 to find the web app
Procedure on how to deploy on heroku as a live system.
install heroku cli for windows and linux users
heroku login
heroku create --region eu your_appname # creates app in eu region, common regions: eu, us
heroku buildpacks:set heroku/python # set python buildpack
git push heroku master # deploy app to heroku
heroku logs --tail # If for some reason it’s not working, check the logs
- Docker - Container development tool
- Flask - The web framework used
- Heroku - Platform
- Opencv - For video streaming analysis
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
This project is licensed under the MIT License - see the LICENSE.md file for details
- AI saturday Kenya