This is the flask web version of the project found here: https://github.com/chpatola/election_predicter
Try the app here: https://yle-election-predictor.herokuapp.com/
You can choose to run the project either via Docker or manually.- Install python 3.8: https://www.python.org/downloads/
- Make sure pip is installed: https://pip.pypa.io/en/stable/installation/
- Install all packages mentioned in requirements.txt
- Start the app in your terminal
python app.py
Now you can open localhost:5000 in your browser and use the app there.
Make sure you have docker installed: https://docs.docker.com/get-docker/.You can use the Docker image provided here https://hub.docker.com/repository/docker/chpatola/yle_web.
The Dockerfile is also uploaded in this repository. Execute the following two commands in your terminal.
docker image pull chpatola/yle_web
docker run -p 5000:5000 chpatola/yle_web
Now you can open localhost:5000 in your browser and use the app there.