|
|
import streamlit as st |
|
|
|
|
|
def main(): |
|
|
st.set_page_config( |
|
|
page_title="International Cricket Analytics Hub", |
|
|
page_icon="๐", |
|
|
layout="wide", |
|
|
) |
|
|
|
|
|
|
|
|
page_bg_img = ''' |
|
|
<style> |
|
|
.stApp { |
|
|
background: linear-gradient(to right, #0f2027, #203a43, #2c5364); |
|
|
color: white; |
|
|
font-family: Arial, sans-serif; |
|
|
} |
|
|
h1 { |
|
|
color: #FFD700; |
|
|
text-align: center; |
|
|
} |
|
|
h2, h3 { |
|
|
color: #FFA500; |
|
|
} |
|
|
.stSuccess { |
|
|
background-color: #32CD32; |
|
|
color: white; |
|
|
font-weight: bold; |
|
|
padding: 10px; |
|
|
border-radius: 5px; |
|
|
text-align: center; |
|
|
} |
|
|
</style> |
|
|
''' |
|
|
st.markdown(page_bg_img, unsafe_allow_html=True) |
|
|
|
|
|
st.title("๐ Welcome to the International Cricket Analytics Hub! ๐") |
|
|
st.subheader("Unleash the Power of Data to Analyze and Predict Cricket!") |
|
|
st.markdown( |
|
|
""" |
|
|
This application is your gateway to a comprehensive International Cricket Analytics Project. |
|
|
Explore player performance, compare teams, and even predict match outcomes using the power of data science! |
|
|
""" |
|
|
) |
|
|
|
|
|
|
|
|
st.header("What is Cricket?") |
|
|
st.write(""" |
|
|
Cricket is not just a sportโ **it's a passion, a celebration, and a way of life for millions!** This thrilling bat-and-ball game is played between two teams of 11 players each, |
|
|
originating in England and now dominating the global sports scene. It is especially popular in countries like **India, Australia, England, South Africa, and Pakistan**. |
|
|
|
|
|
The game is played in multiple formats: |
|
|
- **Test Cricket** ๐: The oldest and purest form, played over five days, testing patience and strategy. |
|
|
|
|
|
- **One Day Internationals (ODIs)** ๐ฏ: 50-over matches that strike a balance between endurance and skill. |
|
|
|
|
|
- **Twenty20 (T20) Cricket** ๐ฅ: The fast and furious version of the game, filled with power-hitting and nail-biting finishes. |
|
|
|
|
|
Cricket is governed by the **International Cricket Council (ICC)**, hosting world-class tournaments such as the Cricket World Cup, ICC T20 World Cup, |
|
|
and the ICC World Test Championship. |
|
|
|
|
|
**Fun Fact:** Cricket is the **second most-watched sport in the world**, with billions tuning in for major tournaments! |
|
|
""") |
|
|
|
|
|
|
|
|
st.header("A Walk Into The Past") |
|
|
st.write(""" |
|
|
Cricket's journey began in **16th-century England**, evolving from a childrenโs game to a global spectacle. Here are some fascinating milestones: |
|
|
|
|
|
- ๐ **The first-ever international match** was played in 1844 between **USA and Canada**. |
|
|
- ๐ **The first official Test match** took place in 1877 between England and Australia. |
|
|
- ๐ **The Cricket World Cup** was introduced in 1975, revolutionizing the sport. |
|
|
- โก **T20 cricket changed the game** in 2007, making it more thrilling and accessible. |
|
|
|
|
|
**Did You Know?** The longest cricket match in history lasted **12 days** (between England and South Africa in 1939) and still ended in a draw! |
|
|
""") |
|
|
|
|
|
|
|
|
st.header("Major Cricket Tournaments and Leagues") |
|
|
st.write(""" |
|
|
Cricket has some of the most iconic tournaments in the world: |
|
|
|
|
|
- ๐ **The Ashes**: A legendary Test rivalry between England and Australia since 1882. |
|
|
|
|
|
- ๐ **ICC Cricket World Cup**: The ultimate ODI showdown, held every four years. |
|
|
|
|
|
- ๐ฅ **ICC T20 World Cup**: A high-energy tournament featuring the best T20 teams globally. |
|
|
|
|
|
- **Indian Premier League (IPL)**: The glitziest and most competitive T20 league, attracting global superstars and emerging talents. |
|
|
|
|
|
- ๐
**ICC World Test Championship (WTC)**: A battle to determine the worldโs best Test team. |
|
|
|
|
|
- ๐ **Asia Cup**: A thrilling contest featuring Asian giants like **India, Pakistan, and Sri Lanka**. |
|
|
""") |
|
|
|
|
|
st.subheader("**IPL - The Game Changer** ๐") |
|
|
st.write(""" |
|
|
The **Indian Premier League (IPL)** is more than just a cricket tournamentโit's a **festival of sports and entertainment**. |
|
|
With packed stadiums, global superstars, and high-voltage matches, IPL has taken cricket to the next level. |
|
|
|
|
|
**Crazy Stat:** The IPL 2023 Final had over **500 million viewers**, making it one of the most-watched sporting events in history! |
|
|
""") |
|
|
|
|
|
st.markdown("---") |
|
|
|
|
|
st.subheader("๐ Project Highlights:") |
|
|
st.write( |
|
|
""" |
|
|
This Streamlit application serves as the front-end for our International Cricket Analytics Project. |
|
|
It leverages various data sources, Machine Learning models, and potentially API integrations to provide insightful analysis and predictions related to international cricket. |
|
|
""") |
|
|
|
|
|
st.markdown( |
|
|
""" |
|
|
**1. Player Stats Visualization:** |
|
|
Dive deep into individual player performance with interactive charts showcasing their batting, bowling, and fielding statistics. |
|
|
""" |
|
|
) |
|
|
|
|
|
st.markdown( |
|
|
""" |
|
|
**2. Indian Player Comparison:** |
|
|
Coming Soon! Upload images of Indian cricketers, identify them using advanced techniques, and compare their key performance metrics side-by-side. |
|
|
""" |
|
|
) |
|
|
|
|
|
st.markdown( |
|
|
""" |
|
|
**3. Team Comparison:** |
|
|
Coming Soon! Upload Both the team name, let the application predict which team wins, based on their historical performance and key statistics. |
|
|
""" |
|
|
) |
|
|
|
|
|
st.markdown( |
|
|
""" |
|
|
**4. Team Score Prediction:** |
|
|
Coming Soon! Utilize a trained Machine Learning regression model to predict the scores of teams in upcoming matches based on various factors. |
|
|
""" |
|
|
) |
|
|
|
|
|
st.markdown( |
|
|
""" |
|
|
**5. Match Winner Prediction:** |
|
|
Coming Soon! Employ a classification Machine Learning model to predict the winner of international cricket matches. |
|
|
""" |
|
|
) |
|
|
|
|
|
st.markdown("---") |
|
|
st.markdown(""" |
|
|
<div class="stSuccess"> |
|
|
This application is currently under active development. |
|
|
Stay tuned for exciting new features and functionalities as the International Cricket Analytics Project progresses! |
|
|
Developed as part of the International Cricket Analytics Project๐</div> |
|
|
""", |
|
|
unsafe_allow_html=True, |
|
|
) |
|
|
st.markdown("---") |
|
|
|
|
|
st.subheader("About Me") |
|
|
st.header("""**Shams Abbas ๐ | The Data All-Rounder ๐** |
|
|
Can bat, bowl, and field in the world of Python, SQL, and ML! |
|
|
""") |
|
|
|
|
|
st.write(""" |
|
|
Hey there! I'm **Shams Abbas**, the **cool guy** who turns raw data into mind-blowing insights. ๐ง ๐ก |
|
|
Some say I see datasets the way a THRID-UMPIRE reads the gameโ** definitely spot-on!** |
|
|
|
|
|
๐ **From analyzing cricket stats to building powerful ML models**, I do it all with a pinch of sarcasm and a whole lot of Python. |
|
|
I'm not just about codingโI believe in **making data science look as effortless as a Virat Kohli cover drive!** ๐๐ฅ |
|
|
""") |
|
|
|
|
|
|
|
|
st.subheader("Skills That Hit Harder Than a Super Over ๐ฅ") |
|
|
st.write(""" |
|
|
- ๐ **Python & SQL**: My go-to power-hitting duo. |
|
|
|
|
|
- ๐ **Data Analysis & Visualization**: Power BI, Pandas, NumPyโbecause seeing is believing! |
|
|
|
|
|
- ๐ค **Machine Learning**: Turning models into MVPs (Most Valuable Predictors). |
|
|
|
|
|
- ๐ **Big Data Handling**: Because sometimes, data isn't just bigโit's **humongous**! ๐ |
|
|
""") |
|
|
|
|
|
|
|
|
st.markdown('<div class="btn-container">', unsafe_allow_html=True) |
|
|
if st.button("Connect on LinkedIn ๐"): |
|
|
st.markdown("[Click Here](https://www.linkedin.com/in/shams-abbas-3801a1258/) to visit my LinkedIn!") |
|
|
st.markdown('</div>', unsafe_allow_html=True) |
|
|
|
|
|
|
|
|
st.markdown('<div class="btn-container">', unsafe_allow_html=True) |
|
|
if st.button("Visit GitHub ๐"): |
|
|
st.markdown("[Click Here](https://github.com/shamsABBAS12) to visit my GitHub!") |
|
|
st.markdown('</div>', unsafe_allow_html=True) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
st.markdown('<div class="stSuccess">Ready to explore more about cricket? Stay tuned for more stats, insights, and surprises! ๐</div>', unsafe_allow_html=True) |
|
|
|
|
|
if __name__ == "__main__": |
|
|
main() |
|
|
|
|
|
|