shubham680 commited on
Commit
33cb025
·
verified ·
1 Parent(s): c3f6357

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +40 -31
app.py CHANGED
@@ -1,23 +1,23 @@
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: #d0e8ff;
10
- width: 100%;
11
  }
12
  .main .block-container {
13
  padding-top: 2rem;
14
- padding-right: 1rem;
15
- padding-left: 1rem;
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 content
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
 
40
- st.markdown('<h3 style="text-align: left; color:red;">What is Artificial Intelligence(AI) ?</h3>', unsafe_allow_html=True)
 
 
 
 
41
 
42
- 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).
43
- 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.
 
44
  """)
45
 
46
- st.markdown('<h3 style="text-align: left; color:red;">What is Data Science ?</h3>', unsafe_allow_html=True)
47
-
48
- 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
49
- which are used to extract insights from structured, unstructured and semi-structured data.
 
50
  """)
51
 
 
52
  st.markdown('<h3 style="text-align: left; color:red;">Machine Learning</h3>', unsafe_allow_html=True)
 
 
 
 
 
 
53
 
54
  st.write("""
55
- <p style='text-align: justify;'>
56
- 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>st.latex(r"f(x_i) = y_i")
57
- </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>.
58
- Machine Learning algorithms can be categorized as :
59
- <ol>
60
- <li>Supervised Learning</li>
61
- <li>Unsupervised Learning</li>
62
- <li>Semi Supervised Learning</li>
63
- </ol>
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
- <p><strong><h4>Shubham Mohanty</h4></strong></p>
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")