Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
import streamlit as st
|
| 3 |
+
import pandas as pd
|
| 4 |
+
|
| 5 |
+
# Custom background (light pink to purple)
|
| 6 |
+
st.markdown("""
|
| 7 |
+
<style>
|
| 8 |
+
.stApp {
|
| 9 |
+
background: linear-gradient(to right, #ffe6f0, #e0c3fc);
|
| 10 |
+
}
|
| 11 |
+
.about-author {
|
| 12 |
+
background-color: rgba(255, 255, 255, 0.8);
|
| 13 |
+
padding: 1.5rem;
|
| 14 |
+
border-radius: 15px;
|
| 15 |
+
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
| 16 |
+
}
|
| 17 |
+
.author-links a {
|
| 18 |
+
margin-right: 15px;
|
| 19 |
+
font-weight: bold;
|
| 20 |
+
color: #4b0082;
|
| 21 |
+
text-decoration: none;
|
| 22 |
+
}
|
| 23 |
+
.author-links a:hover {
|
| 24 |
+
text-decoration: underline;
|
| 25 |
+
}
|
| 26 |
+
</style>
|
| 27 |
+
""", unsafe_allow_html=True)
|
| 28 |
+
|
| 29 |
+
# Main content
|
| 30 |
+
st.markdown('<h2 style="text-align: center;"><span style="color:red;">CricBuzz</span>: Introduction to Data Science and Artificial Intelligence </h2>', unsafe_allow_html=True)
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
st.markdown('<h3 style="text-align: left; color:red;">What is Artificial Intelligence(AI) ?</h3>', unsafe_allow_html=True)
|
| 34 |
+
|
| 35 |
+
st.write("""Artificial Intelligence (AI) refers to the simulation of human intelligence in machines that are programmed to think, learn, and make decisions like humans.In simple terms, when machines are trying to mimic/copy the natural intelligence(performing day to day tasks).
|
| 36 |
+
It includes two capabilities <strong>Learning Ability</strong> and <strong> Generating Ability </strong>.The Learning ability is achieved using the concepts of Machine Learning(ML),Deep Learning(DL) whereas the Generating ability is achieved using Generative AI.
|
| 37 |
+
""")
|
| 38 |
+
|
| 39 |
+
st.markdown('<h3 style="text-align: left; color:red;">What is Data Science ?</h3>', unsafe_allow_html=True)
|
| 40 |
+
|
| 41 |
+
st.write("""Data Science is the branch of computer science that uses statistics,mathematics and computer science to gain insights from the data. It consists of algorithms like Machine Learning, Deep Learning
|
| 42 |
+
which are used to extract insights from structured, unstructured and semi-structured data.
|
| 43 |
+
""")
|
| 44 |
+
|
| 45 |
+
st.markdown('<h3 style="text-align: left; color:red;">Machine Learning</h3>', unsafe_allow_html=True)
|
| 46 |
+
|
| 47 |
+
st.write("""
|
| 48 |
+
<p style='text-align: justify;'>
|
| 49 |
+
Machine Learning uses the concepts of statistics to mimic/copy the ability of learning and provide this capability to machines. It can be considered as the function(<strong>y=f(x)</strong>) where it is able to capture the relationship between x and y. For the learning it requires two things i.e. <strong>data</strong> and <strong> algorithms </strong>.
|
| 50 |
+
Machine Learning algorithms can be categorized as :
|
| 51 |
+
<ol>
|
| 52 |
+
<li>Supervised Learning</li>
|
| 53 |
+
<li>Unsupervised Learning</li>
|
| 54 |
+
<li>Semi Supervised Learningh</li>
|
| 55 |
+
</ol>
|
| 56 |
+
</p>
|
| 57 |
+
""", unsafe_allow_html=True)
|
| 58 |
+
|
| 59 |
+
# About the Author
|
| 60 |
+
st.markdown(
|
| 61 |
+
"""
|
| 62 |
+
<div class="about-author">
|
| 63 |
+
<h2><center>About the Author</center></h2>
|
| 64 |
+
<p><strong><h4>Shubham Mohanty</h4></strong></p>
|
| 65 |
+
<p>I'm a Data Science Enthusiast with a strong passion for turning raw data into meaningful insights.
|
| 66 |
+
With a love for statistics, machine learning, and real-world problem solving, I enjoy working on
|
| 67 |
+
end-to-end data science projects that make a difference.</p>
|
| 68 |
+
<div class="author-links">
|
| 69 |
+
<a href="https://www.linkedin.com/in/shubhamohanty/" target="_blank">LinkedIn</a>
|
| 70 |
+
<a href="https://github.com/ShubhamMohanty680?tab=repositories" target="_blank">GitHub</a>
|
| 71 |
+
</div>
|
| 72 |
+
</div>
|
| 73 |
+
""", unsafe_allow_html=True
|
| 74 |
+
)
|
| 75 |
+
|
| 76 |
+
# Space before button
|
| 77 |
+
st.markdown("<br><br>", unsafe_allow_html=True)
|
| 78 |
+
|
| 79 |
+
# Navigation button
|
| 80 |
+
if st.button("Go to Page 1"):
|
| 81 |
+
st.switch_page("pages/player stats.py")
|
| 82 |
+
|