├── Procfile
├── flight_rf.pkl
├── static
└── css
│ └── styles.css
├── requirements.txt
├── README.md
├── templates
└── home.html
└── app.py
/Procfile:
--------------------------------------------------------------------------------
1 | web: gunicorn app:app
--------------------------------------------------------------------------------
/flight_rf.pkl:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DURGESH716/Flight-Price-Prediction/HEAD/flight_rf.pkl
--------------------------------------------------------------------------------
/static/css/styles.css:
--------------------------------------------------------------------------------
1 | body {
2 | background-color: #e1f4f3;
3 | text-align: center;
4 | }
5 |
6 | .navbar {
7 | background-color: #333333;
8 | }
9 |
10 | a {
11 | color: #f1f9f9;
12 | }
13 |
14 | a:hover {
15 | color: #f0f0f0;
16 | }
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
1 | appdirs==1.4.3
2 | certifi==2020.6.20
3 | click==7.1.2
4 | distlib==0.3.0
5 | Flask==1.1.2
6 | Flask-Cors==3.0.8
7 | gunicorn==20.0.4
8 | itsdangerous==1.1.0
9 | Jinja2==2.11.2
10 | joblib==0.15.1
11 | MarkupSafe==1.1.1
12 | numpy==1.18.1
13 | pandas==1.0.1
14 | python-dateutil==2.8.1
15 | pytz==2019.3
16 | scikit-learn==0.22.1
17 | scipy==1.4.1
18 | six==1.14.0
19 | virtualenv==20.0.7
20 | Werkzeug==1.0.1
21 | wincertstore==0.2
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Flight Fare Prediction:
2 |
3 | ## Table of Content
4 | * [Demo](#demo)
5 | * [Overview](#overview)
6 | * [Motivation](#motivation)
7 | * [Installation](#installation)
8 | * [Deployement on Heroku](#deployement-on-heroku)
9 | * [Directory Tree](#directory-tree)
10 | * [Bug / Feature Request](#bug---feature-request)
11 | * [Future scope of project](#future-scope)
12 |
13 |
14 | ## Demo
15 | Link: [https://flight-price-prediction-api.herokuapp.com/](https://flight-price-prediction-api.herokuapp.com/)
16 |
17 | [](https://flight-price-prediction-api.herokuapp.com/)
18 |
19 | [](https://flight-price-prediction-api.herokuapp.com/)
20 |
21 | ## Overview
22 | This is a Flask web app which predicts fare of Flight ticket.
23 |
24 | ## Motivation
25 | What to do when you are at home due to this pandemic situation? I started to learn Machine Learning model to get most out of it. I came to know mathematics behind all supervised models. Finally it is important to work on application (real world application) to actually make a difference.
26 |
27 | ## Installation
28 | The Code is written in Python 3.6.10. If you don't have Python installed you can find it [here](https://www.python.org/downloads/). If you are using a lower version of Python you can upgrade using the pip package, ensuring you have the latest version of pip. To install the required packages and libraries, run this command in the project directory after [cloning](https://www.howtogeek.com/451360/how-to-clone-a-github-repository/) the repository:
29 | ```bash
30 | pip install -r requirements.txt
31 | ```
32 |
33 | ## Deployement on Heroku
34 | Login or signup in order to create virtual app. You can either connect your github profile or download ctl to manually deploy this project.
35 |
36 | [](https://heroku.com)
37 |
38 | Our next step would be to follow the instruction given on [Heroku Documentation](https://devcenter.heroku.com/articles/getting-started-with-python) to deploy a web app.
39 |
40 | ## Directory Tree
41 | ```
42 | ├── static
43 | │ ├── css
44 | ├── template
45 | │ ├── home.html
46 | ├── Procfile
47 | ├── README.md
48 | ├── app.py
49 | ├── flight_price.ipynb
50 | ├── flight_rf.pkl
51 | ├── requirements.txt
52 | ```
53 |
54 | ## Technologies Used
55 |
56 | 
57 |
58 | [](https://flask.palletsprojects.com/en/1.1.x/) [](https://gunicorn.org) [](https://scikit-learn.org/stable/)
59 |
60 |
61 | ## Bug / Feature Request
62 |
63 | If you find a bug (the website couldn't handle the query and / or gave undesired results), kindly open an [issue](https://github.com/Mandal-21/Flight-Price-Prediction/issues) here by including your search query and the expected result
64 |
65 | ## Future Scope
66 |
67 | * Use multiple Algorithms
68 | * Optimize Flask app.py
69 | * Front-End
70 |
--------------------------------------------------------------------------------
/templates/home.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |