Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,23 +1,23 @@
|
|
| 1 |
-
|
| 2 |
import streamlit as st
|
| 3 |
-
import pandas as pd
|
| 4 |
|
| 5 |
-
# Custom
|
| 6 |
st.markdown("""
|
| 7 |
<style>
|
|
|
|
| 8 |
.stApp {
|
| 9 |
-
background: #d0e8ff;
|
| 10 |
-
width: 100%;
|
| 11 |
}
|
| 12 |
.main .block-container {
|
| 13 |
padding-top: 2rem;
|
| 14 |
-
padding-right:
|
| 15 |
-
padding-left:
|
| 16 |
padding-bottom: 2rem;
|
| 17 |
max-width: 100%;
|
| 18 |
}
|
| 19 |
.about-author {
|
| 20 |
background-color: rgba(255, 255, 255, 0.8);
|
|
|
|
| 21 |
border-radius: 15px;
|
| 22 |
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
| 23 |
}
|
|
@@ -33,43 +33,53 @@ st.markdown("""
|
|
| 33 |
</style>
|
| 34 |
""", unsafe_allow_html=True)
|
| 35 |
|
| 36 |
-
# Main
|
| 37 |
-
st.markdown('<h2 style="text-align: center;"><span style="color:red;">Introduction to Data Science and Artificial Intelligence
|
| 38 |
-
|
| 39 |
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|
|
|
|
| 44 |
""")
|
| 45 |
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
st.write("""
|
| 49 |
-
|
|
|
|
| 50 |
""")
|
| 51 |
|
|
|
|
| 52 |
st.markdown('<h3 style="text-align: left; color:red;">Machine Learning</h3>', unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
|
| 54 |
st.write("""
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
</p>
|
| 65 |
-
""", unsafe_allow_html=True)
|
| 66 |
|
| 67 |
# About the Author
|
| 68 |
st.markdown(
|
| 69 |
"""
|
| 70 |
<div class="about-author">
|
| 71 |
<h2>About the Author</h2>
|
| 72 |
-
<
|
| 73 |
<p>I'm a Data Science Enthusiast with a strong passion for turning raw data into meaningful insights.
|
| 74 |
With a love for statistics, machine learning, and real-world problem solving, I enjoy working on
|
| 75 |
end-to-end data science projects that make a difference.</p>
|
|
@@ -84,7 +94,6 @@ st.markdown(
|
|
| 84 |
# Space before button
|
| 85 |
st.markdown("<br><br>", unsafe_allow_html=True)
|
| 86 |
|
| 87 |
-
# Navigation button
|
| 88 |
if st.button("Go to Page 1"):
|
| 89 |
st.switch_page("pages/player stats.py")
|
| 90 |
-
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
import pandas as pd
|
| 3 |
|
| 4 |
+
# Custom full-width layout and background style
|
| 5 |
st.markdown("""
|
| 6 |
<style>
|
| 7 |
+
/* Set full-page width and remove Streamlit default padding */
|
| 8 |
.stApp {
|
| 9 |
+
background-color: #d0e8ff;
|
|
|
|
| 10 |
}
|
| 11 |
.main .block-container {
|
| 12 |
padding-top: 2rem;
|
| 13 |
+
padding-right: 2rem;
|
| 14 |
+
padding-left: 2rem;
|
| 15 |
padding-bottom: 2rem;
|
| 16 |
max-width: 100%;
|
| 17 |
}
|
| 18 |
.about-author {
|
| 19 |
background-color: rgba(255, 255, 255, 0.8);
|
| 20 |
+
padding: 1.5rem;
|
| 21 |
border-radius: 15px;
|
| 22 |
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
| 23 |
}
|
|
|
|
| 33 |
</style>
|
| 34 |
""", unsafe_allow_html=True)
|
| 35 |
|
| 36 |
+
# Main Heading
|
| 37 |
+
st.markdown('<h2 style="text-align: center;"><span style="color:red;">Introduction to Data Science and Artificial Intelligence</span></h2>', unsafe_allow_html=True)
|
|
|
|
| 38 |
|
| 39 |
+
# Section: AI
|
| 40 |
+
st.markdown('<h3 style="text-align: left; color:red;">What is Artificial Intelligence (AI)?</h3>', unsafe_allow_html=True)
|
| 41 |
+
st.write("""
|
| 42 |
+
Artificial Intelligence (AI) refers to the simulation of human intelligence in machines that are programmed to think, learn, and make decisions like humans.
|
| 43 |
+
In simple terms, it's when machines mimic or copy natural intelligence (performing day-to-day tasks).
|
| 44 |
|
| 45 |
+
It includes two main capabilities:
|
| 46 |
+
- **Learning Ability** (achieved using Machine Learning (ML) and Deep Learning (DL))
|
| 47 |
+
- **Generating Ability** (achieved using Generative AI)
|
| 48 |
""")
|
| 49 |
|
| 50 |
+
# Section: Data Science
|
| 51 |
+
st.markdown('<h3 style="text-align: left; color:red;">What is Data Science?</h3>', unsafe_allow_html=True)
|
| 52 |
+
st.write("""
|
| 53 |
+
Data Science is a field that combines statistics, mathematics, and computer science to extract insights from data.
|
| 54 |
+
It involves techniques and algorithms, including Machine Learning and Deep Learning, to work with structured, unstructured, and semi-structured data.
|
| 55 |
""")
|
| 56 |
|
| 57 |
+
# Section: Machine Learning
|
| 58 |
st.markdown('<h3 style="text-align: left; color:red;">Machine Learning</h3>', unsafe_allow_html=True)
|
| 59 |
+
st.write("""
|
| 60 |
+
Machine Learning uses statistical concepts to give machines the ability to learn from data.
|
| 61 |
+
|
| 62 |
+
The relationship between input and output can be expressed as a function:
|
| 63 |
+
""")
|
| 64 |
+
st.latex(r"f(x_i) = y_i")
|
| 65 |
|
| 66 |
st.write("""
|
| 67 |
+
For machines to learn this function, they need two things:
|
| 68 |
+
- **Data**
|
| 69 |
+
- **Algorithms**
|
| 70 |
+
|
| 71 |
+
Machine Learning can be categorized into:
|
| 72 |
+
1. Supervised Learning
|
| 73 |
+
2. Unsupervised Learning
|
| 74 |
+
3. Semi-Supervised Learning
|
| 75 |
+
""")
|
|
|
|
|
|
|
| 76 |
|
| 77 |
# About the Author
|
| 78 |
st.markdown(
|
| 79 |
"""
|
| 80 |
<div class="about-author">
|
| 81 |
<h2>About the Author</h2>
|
| 82 |
+
<h4><strong>Shubham Mohanty</strong></h4>
|
| 83 |
<p>I'm a Data Science Enthusiast with a strong passion for turning raw data into meaningful insights.
|
| 84 |
With a love for statistics, machine learning, and real-world problem solving, I enjoy working on
|
| 85 |
end-to-end data science projects that make a difference.</p>
|
|
|
|
| 94 |
# Space before button
|
| 95 |
st.markdown("<br><br>", unsafe_allow_html=True)
|
| 96 |
|
| 97 |
+
# Navigation button (optional if you have multi-page setup)
|
| 98 |
if st.button("Go to Page 1"):
|
| 99 |
st.switch_page("pages/player stats.py")
|
|
|