hari3485 commited on
Commit
a9c113e
·
verified ·
1 Parent(s): 52587bc

Update pages/intro.py

Browse files
Files changed (1) hide show
  1. pages/intro.py +39 -1
pages/intro.py CHANGED
@@ -2,4 +2,42 @@ import streamlit as st
2
 
3
  st.markdown("<h1> ✍What is Data Science?</h1>",unsafe_allow_html=True)
4
 
5
- st.markdown("<p style='margin-top: 0;'>Data science is a field that extracts insights and knowledge from data. It’s like being a detective who uses clues (data) to solve mysteries (business problems or questions).</p></div>", unsafe_allow_html=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  st.markdown("<h1> ✍What is Data Science?</h1>",unsafe_allow_html=True)
4
 
5
+ st.markdown("<p style='margin-top: 0;'>Data science is a field that extracts insights and knowledge from data. It’s like being a detective who uses clues (data) to solve mysteries (business problems or questions).</p></div>", unsafe_allow_html=True)
6
+
7
+
8
+ import streamlit as st
9
+
10
+ # Set up the page
11
+ st.set_page_config(page_title="AI Story", page_icon="🌟", layout="centered")
12
+
13
+ # Header
14
+ st.markdown("<h1 style='text-align: center; color: #ff5722;'>🌟 The Story of Learning 🌟</h1>", unsafe_allow_html=True)
15
+
16
+ # Story paragraph
17
+ st.markdown("""
18
+ <p style='text-align: center; color: #333; font-size: 18px;'>
19
+ There was a mother and her young daughter who didn’t know how to draw.
20
+ Wanting to help, the mother enrolled her daughter in a drawing class.
21
+ At the class, the teacher showed her step-by-step how to draw simple shapes and pictures.
22
+ The girl practiced every day, observing and mimicking what her teacher showed.
23
+ Over time, she improved and could create beautiful drawings on her own.
24
+ This was possible because of the natural intelligence given by God—her ability to learn, practice, and create. ✍️✨
25
+ </p>
26
+ <p style='text-align: center; color: #333; font-size: 18px;'>
27
+ Similarly, in Artificial Intelligence (AI), machines do not have natural intelligence to learn or create on their own.
28
+ Just as the mother guided her daughter by enrolling her in classes and the teacher helped her practice,
29
+ we guide machines by feeding them data and teaching them patterns.
30
+ Over time, the machine learns from this data and mimics natural intelligence to perform tasks intelligently.
31
+ </p>
32
+ """, unsafe_allow_html=True)
33
+
34
+ # Key points
35
+ st.markdown("""
36
+ <ul style='text-align: left; color: #2196f3; font-size: 18px;'>
37
+ <li>📚 <strong>Learning Ability:</strong> Machines learn patterns and knowledge from data, just like the girl learned to draw by observing examples and practicing.</li>
38
+ <li>🎨 <strong>Generating Ability:</strong> After learning, machines can create outputs such as text, images, or decisions, imitating human-like intelligence.</li>
39
+ </ul>
40
+ """, unsafe_allow_html=True)
41
+
42
+ # Footer
43
+ st.markdown("<footer style='text-align: center; font-size: 16px; color: #666;'>These two abilities form the foundation of AI, enabling machines to mimic human-like learning and creativity.</footer>", unsafe_allow_html=True)