Spaces:
Sleeping
Sleeping
File size: 2,756 Bytes
b5734ec af68536 b5734ec 0a9aa5b b5734ec 0a9aa5b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
import streamlit as st
from streamlit_extras.switch_page_button import switch_page
# Initialize session state to track which button was clicked
if 'button_clicked' not in st.session_state:
st.session_state.button_clicked = None
# Custom styles
st.markdown(
"""
<style>
.stApp {
background-color: skyblue;
}
</style>
""",
unsafe_allow_html=True,
)
# Initialize session state variables
for key in ['page', 'jupyter_clicked', 'pdf_clicked', 'excel_clicked']:
if key not in st.session_state:
st.session_state[key] = 'home' if key == 'page' else False
# App Header
st.markdown("<h1 style='text-align: center; color: red;'>π Cric Metrics - AI-Powered Cricket Insights π</h1>", unsafe_allow_html=True)
# About the App
st.markdown("<h2 style='color: blue;'>What is Cric Metrics? π</h2>", unsafe_allow_html=True)
st.markdown(
"<p style='font-size: 16px; color: black; font-style: italic;'>"
"Cric Metrics is an advanced cricket analytics platform designed to provide in-depth insights, player comparisons, "
"score predictions, and team analysis using AI and machine learning."
"</p>",
unsafe_allow_html=True
)
st.markdown(
"<p style='font-size: 16px; color: black; font-style: italic;'>"
"Key Features:<br>"
"β
<b>Player Profiles & Comparisons</b> β Analyze detailed stats and compare players across formats.<br>"
"β
<b>Team Analysis</b> β Head-to-head matchups, recent performance, and winning probabilities.<br>"
"β
<b>Score Prediction</b> β AI-driven forecasts based on historical data and live conditions.<br>"
"</p>",
unsafe_allow_html=True
)
st.markdown(
"<p style='font-size: 16px; color: black; font-style: italic;'>"
"Whether you're a cricket enthusiast, fantasy league player, or analyst, Cric Metrics gives you the edge with data-driven insights!"
"</p>",
unsafe_allow_html=True
)
# Author Section
st.markdown("<h2 style='color: green;'>About the Author π¨βπ»</h2>", unsafe_allow_html=True)
st.markdown(
"<p style='font-size: 16px; color: black; font-style: italic;'>"
"<b>Sai Kalyan Satwik</b> is a seasoned cricket enthusiast and tech entrepreneur with over 10 years of experience in the field. "
"Passionate about blending technology with sports, he has developed Cric Metrics to bring the power of AI and data science into cricket analytics."
"</p>",
unsafe_allow_html=True
)
st.markdown(
"<p style='font-size: 16px; color: black; font-style: italic;'>"
"His expertise spans Machine Learning, Software Development, and Cricket Analysis, making Cric Metrics a top-tier analytical platform for cricket lovers worldwide."
"</p>",
unsafe_allow_html=True
)
|