Cric-Info / Cric-Info.py
AbbasAga's picture
Update Cric-Info.py
593f35f verified
import streamlit as st
def main():
st.set_page_config(
page_title="International Cricket Analytics Hub",
page_icon="๐Ÿ",
layout="wide",
)
# Custom Background and Styling
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!
"""
)
# Introduction
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!
""")
# History of Cricket
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!
""")
# Major Cricket Tournaments
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!** ๐Ÿ˜๐Ÿ”ฅ
""")
# Skills
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**! ๐Ÿš€
""")
# LinkedIn Button
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)
# GitHub Button
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)
# Closing Note
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()