Download app.py from Srikanth0804/Flight_Price_Prediction: direct link, hf CLI and curl.
- Browser
- Download file 1.17 kB
-
https://huggingface.co/spaces/Srikanth0804/Flight_Price_Prediction/resolve/main/app.py
- Command line
-
hf download hf://spaces/Srikanth0804/Flight_Price_Prediction/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Srikanth0804/Flight_Price_Prediction/resolve/main/app.py
1.17 kB
| import streamlit as st | |
| st.title("βοΈ Flight Ticket Price Prediction App") | |
| st.subheader("Welcome to my Machine Learning Project!") | |
| st.markdown(""" | |
| ## π Project Introduction: | |
| Welcome to the **Flight Ticket Price Prediction App**. | |
| In this project, I have developed a machine learning model to predict flight ticket prices based on factors such as airline, source, destination, stops, travel class, duration, and more. | |
| I experimented with **multiple regression algorithms** including: | |
| - **Linear Regression** | |
| - **K-Nearest Neighbors (KNN)** | |
| - **Decision Tree** | |
| - **Random Forest** | |
| - **XGBoost** | |
| After comparing their performance using **MAE, RMSE, and RΒ² scores**, the **Random Forest Regressor** was selected as the final model for deployment due to its highest accuracy and lowest errors. | |
| --- | |
| ### π Project Overview: | |
| - Built using Python and Streamlit | |
| - Deployed on Hugging Face Spaces | |
| - Machine Learning Algorithm: **Random Forest Regressor** | |
| --- | |
| ### π¨βπ» Project by: | |
| **Srikanth Gunti** | |
| Postgraduate Data Science Student | |
| Nizam College, Osmania University | |
| --- | |
| """) | |
| if st.button('Next'): | |
| st.switch_page('pages/1_Problem_Statement.py') |