Spaces:
Sleeping
Sleeping
Update pages/Introduction.py
Browse files- pages/Introduction.py +37 -97
pages/Introduction.py
CHANGED
|
@@ -8,148 +8,88 @@ st.set_page_config(
|
|
| 8 |
)
|
| 9 |
|
| 10 |
# Main Title
|
| 11 |
-
st.markdown("<h1 style='color: #FF5733;'>🌟 Exploring Artificial Intelligence, Machine Learning, Deep Learning, and Generative AI</h1>", unsafe_allow_html=True)
|
| 12 |
|
| 13 |
# Visual Section: Comparison of AI, ML, DL, and Generative AI
|
| 14 |
-
st.markdown("<h2 style='color: #2C3E50;'>AI vs ML vs DL vs Generative AI</h2>", unsafe_allow_html=True)
|
| 15 |
|
| 16 |
image_url = "https://huggingface.co/spaces/varshitha22/ML/resolve/main/images/im1.jpg"
|
| 17 |
|
| 18 |
st.markdown(
|
| 19 |
f"""
|
| 20 |
<div style="display: flex; justify-content: center;">
|
| 21 |
-
<img src="{image_url}" alt="AI vs ML vs DL vs Generative AI" width="
|
| 22 |
</div>
|
| 23 |
""",
|
| 24 |
unsafe_allow_html=True
|
| 25 |
)
|
| 26 |
|
| 27 |
# Section 1: Artificial
|
| 28 |
-
st.markdown("<h2 style='color: #1ABC9C; font-size:
|
| 29 |
st.markdown("""
|
| 30 |
-
<p style='font-size:
|
| 31 |
The term <b>artificial</b> refers to anything that is not naturally occurring and is created by humans.
|
| 32 |
</p>
|
| 33 |
-
<p style='font-size:
|
| 34 |
-
<ul style='font-size:
|
| 35 |
-
<li><b>Artificial Satellites</b>: A man-made object that orbits Earth or other planets
|
| 36 |
-
<li><b>Artificial Flowers</b>:
|
| 37 |
</ul>
|
| 38 |
-
</div>
|
| 39 |
""", unsafe_allow_html=True)
|
| 40 |
|
| 41 |
# Section 2: Intelligence
|
| 42 |
-
st.markdown("<h2 style='color: #8E44AD; font-size:
|
| 43 |
st.markdown("""
|
| 44 |
-
<p style='font-size:
|
| 45 |
<b>Intelligence</b> is the ability to think, learn, understand, reason, and make decisions.
|
| 46 |
</p>
|
| 47 |
-
<p style='font-size: 24px;'>This intelligence exists naturally, and we call it <b>natural intelligence</b>.</p>
|
| 48 |
-
<p style='font-size: 24px;'><b>Example:</b></p>
|
| 49 |
-
<ul style='font-size: 24px;'>
|
| 50 |
-
<li>The child sees a dog for the first time and hears their parents say, “This is a dog.”</li>
|
| 51 |
-
<li>The child observes its shape, fur, barking sound, and movement.</li>
|
| 52 |
-
</ul>
|
| 53 |
""", unsafe_allow_html=True)
|
| 54 |
|
| 55 |
# Section 3: Artificial Intelligence (AI)
|
| 56 |
-
st.markdown("<h2 style='color: #F39C12; font-size:
|
| 57 |
|
| 58 |
st.markdown("""
|
| 59 |
-
<p style='font-size:
|
| 60 |
-
<b>Artificial Intelligence (AI)</b> is a field of computer science that focuses on mimicking
|
| 61 |
-
</p>
|
| 62 |
-
<p style='font-size: 24px; font-style: italic;'><b>Example:</b></p>
|
| 63 |
-
<ul style='font-size: 24px;'>
|
| 64 |
-
<li>Imagine a baby learning to walk. At first, the baby stumbles and falls, but with each attempt, they improve. Their brain automatically learns from past experiences — adjusting balance, correcting mistakes, and gradually walking without help. This is an example of <b>natural intelligence</b> — the ability to learn, adapt, and improve based on experience.</li>
|
| 65 |
-
</ul>
|
| 66 |
-
<p style='font-size: 24px; font-weight: bold;'>How AI Mimics This Process</p>
|
| 67 |
-
<ul style='font-size: 24px;'>
|
| 68 |
-
<li>Now, think about a self-driving car. In the beginning, the car doesn’t know how to drive. It is trained by feeding it thousands of hours of road data—how to stop at red lights, recognize pedestrians, and adjust speed. The AI system analyzes these patterns, learns from past mistakes, and gets better at driving over time.</li>
|
| 69 |
-
</ul>
|
| 70 |
-
<p style='font-size: 24px;'>
|
| 71 |
-
Just like a baby learns to walk through trial and error, <b>AI learns by analyzing data, identifying patterns, and making decisions based on what it has learned.</b>
|
| 72 |
</p>
|
| 73 |
-
<p style='font-size:
|
| 74 |
-
<ul style='font-size:
|
| 75 |
-
<li><b>Siri, Alexa,
|
| 76 |
</ul>
|
| 77 |
""", unsafe_allow_html=True)
|
| 78 |
|
| 79 |
-
# Section 4:
|
| 80 |
-
st.markdown("<h2 style='color: #
|
| 81 |
st.markdown("""
|
| 82 |
-
<p style='font-size:
|
| 83 |
-
|
| 84 |
</p>
|
| 85 |
""", unsafe_allow_html=True)
|
| 86 |
|
| 87 |
-
# Image Section for Techniques and Tools
|
| 88 |
-
image_url = "https://huggingface.co/spaces/varshitha22/ML/resolve/main/images/im2.jpg"
|
| 89 |
-
|
| 90 |
-
st.markdown(
|
| 91 |
-
f"""
|
| 92 |
-
<div style="display: flex; justify-content: center;">
|
| 93 |
-
<img src="{image_url}" alt="AI Techniques and Tools" width="900">
|
| 94 |
-
</div>
|
| 95 |
-
""",
|
| 96 |
-
unsafe_allow_html=True
|
| 97 |
-
)
|
| 98 |
-
|
| 99 |
-
# Section: Machine Learning
|
| 100 |
-
st.markdown("""
|
| 101 |
-
<h2 style='color: #1ABC9C; font-size: 30px; font-weight: bold;'> Machine Learning: A Subset of AI</h2>
|
| 102 |
-
<p style='font-size: 24px;'>
|
| 103 |
-
<b>Machine Learning</b> is a statistical technique that learns from data and makes predictions or decisions based on it.
|
| 104 |
-
</p>
|
| 105 |
-
<p style='font-size: 24px;font-weight: bold;'>How Machine Learning Works?</p>
|
| 106 |
-
<p style='font-size: 24px; font-weight: bold;'>ML follows a simple process:</p>
|
| 107 |
-
<ul style='font-size: 24px;'>
|
| 108 |
-
<li><b>Collect Data:</b> Gather historical data (e.g., past movie ratings, customer transactions).</li>
|
| 109 |
-
<li><b>Train the Model:</b> Use algorithms to find patterns in the data.</li>
|
| 110 |
-
<li><b>Test & Improve:</b> Evaluate the model’s accuracy and refine it.</li>
|
| 111 |
-
<li><b>Make Predictions:</b> Apply the trained model to new data for real-world use.</li>
|
| 112 |
-
</ul>
|
| 113 |
-
<p style='font-size: 24px; font-weight: bold;'>Applications:</p>
|
| 114 |
-
<ul style='font-size: 24px;'>
|
| 115 |
-
<li><b>Chatbots:</b> Text-based chatbots for customer support, voice-based assistants like Siri and Alexa.</li>
|
| 116 |
-
<li><b>Autonomous Vehicles:</b> Tesla’s self-driving cars.</li>
|
| 117 |
-
<li><b>Recommendation Systems:</b> Personalized suggestions on e-commerce platforms (Amazon, Netflix, etc.).</li>
|
| 118 |
-
<li><b>Predictive Analytics:</b> Weather forecasting, traffic prediction.</li>
|
| 119 |
-
<li><b>Robotics:</b> Used in automation and intelligent robots.</li>
|
| 120 |
-
<li><b>Object Detection & Sentiment Analysis:</b> Used in computer vision and NLP applications like fraud detection, emotion analysis.</li>
|
| 121 |
-
</ul>
|
| 122 |
-
</div>
|
| 123 |
-
""", unsafe_allow_html=True)
|
| 124 |
-
|
| 125 |
# Section: Deep Learning
|
|
|
|
| 126 |
st.markdown("""
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
</p>
|
| 131 |
-
<p style='font-size: 24px;'>These neural networks are composed of multiple layers (hence the term “deep”) that enable the model to automatically extract features from the data.</p>
|
| 132 |
-
</div>
|
| 133 |
""", unsafe_allow_html=True)
|
| 134 |
|
| 135 |
# Section: Generative AI
|
|
|
|
| 136 |
st.markdown("""
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
</p>
|
| 141 |
-
</div>
|
| 142 |
""", unsafe_allow_html=True)
|
| 143 |
|
| 144 |
# Section: Relationship Between AI, ML, DL, and Generative AI
|
|
|
|
| 145 |
st.markdown("""
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
<
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
</ul>
|
| 154 |
-
</div>
|
| 155 |
""", unsafe_allow_html=True)
|
|
|
|
| 8 |
)
|
| 9 |
|
| 10 |
# Main Title
|
| 11 |
+
st.markdown("<h1 style='color: #FF5733; font-size: 28px;'>🌟 Exploring Artificial Intelligence, Machine Learning, Deep Learning, and Generative AI</h1>", unsafe_allow_html=True)
|
| 12 |
|
| 13 |
# Visual Section: Comparison of AI, ML, DL, and Generative AI
|
| 14 |
+
st.markdown("<h2 style='color: #2C3E50; font-size: 24px;'>AI vs ML vs DL vs Generative AI</h2>", unsafe_allow_html=True)
|
| 15 |
|
| 16 |
image_url = "https://huggingface.co/spaces/varshitha22/ML/resolve/main/images/im1.jpg"
|
| 17 |
|
| 18 |
st.markdown(
|
| 19 |
f"""
|
| 20 |
<div style="display: flex; justify-content: center;">
|
| 21 |
+
<img src="{image_url}" alt="AI vs ML vs DL vs Generative AI" width="700">
|
| 22 |
</div>
|
| 23 |
""",
|
| 24 |
unsafe_allow_html=True
|
| 25 |
)
|
| 26 |
|
| 27 |
# Section 1: Artificial
|
| 28 |
+
st.markdown("<h2 style='color: #1ABC9C; font-size: 22px; font-weight: bold;'>Artificial:</h2>", unsafe_allow_html=True)
|
| 29 |
st.markdown("""
|
| 30 |
+
<p style='font-size: 18px;'>
|
| 31 |
The term <b>artificial</b> refers to anything that is not naturally occurring and is created by humans.
|
| 32 |
</p>
|
| 33 |
+
<p style='font-size: 18px;'><b>Examples:</b></p>
|
| 34 |
+
<ul style='font-size: 18px;'>
|
| 35 |
+
<li><b>Artificial Satellites</b>: A man-made object that orbits Earth or other planets.</li>
|
| 36 |
+
<li><b>Artificial Flowers</b>: Man-made replicas of real flowers used for decoration.</li>
|
| 37 |
</ul>
|
|
|
|
| 38 |
""", unsafe_allow_html=True)
|
| 39 |
|
| 40 |
# Section 2: Intelligence
|
| 41 |
+
st.markdown("<h2 style='color: #8E44AD; font-size: 22px; font-weight: bold;'>Intelligence:</h2>", unsafe_allow_html=True)
|
| 42 |
st.markdown("""
|
| 43 |
+
<p style='font-size: 18px;'>
|
| 44 |
<b>Intelligence</b> is the ability to think, learn, understand, reason, and make decisions.
|
| 45 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
""", unsafe_allow_html=True)
|
| 47 |
|
| 48 |
# Section 3: Artificial Intelligence (AI)
|
| 49 |
+
st.markdown("<h2 style='color: #F39C12; font-size: 22px; font-weight: bold;'>Artificial Intelligence (AI):</h2>", unsafe_allow_html=True)
|
| 50 |
|
| 51 |
st.markdown("""
|
| 52 |
+
<p style='font-size: 18px;'>
|
| 53 |
+
<b>Artificial Intelligence (AI)</b> is a field of computer science that focuses on mimicking human intelligence in machines.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
</p>
|
| 55 |
+
<p style='font-size: 18px; font-weight: bold;'>Real-World Examples of AI:</p>
|
| 56 |
+
<ul style='font-size: 18px;'>
|
| 57 |
+
<li><b>Siri, Alexa, Google Assistant:</b> AI-powered virtual assistants.</li>
|
| 58 |
</ul>
|
| 59 |
""", unsafe_allow_html=True)
|
| 60 |
|
| 61 |
+
# Section 4: Machine Learning
|
| 62 |
+
st.markdown("<h2 style='color: #1ABC9C; font-size: 22px; font-weight: bold;'>Machine Learning: A Subset of AI</h2>", unsafe_allow_html=True)
|
| 63 |
st.markdown("""
|
| 64 |
+
<p style='font-size: 18px;'>
|
| 65 |
+
<b>Machine Learning</b> is a statistical technique that learns from data and makes predictions or decisions based on it.
|
| 66 |
</p>
|
| 67 |
""", unsafe_allow_html=True)
|
| 68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
# Section: Deep Learning
|
| 70 |
+
st.markdown("<h2 style='color: #8E44AD; font-size: 22px; font-weight: bold;'>Deep Learning: A Subset of Machine Learning</h2>", unsafe_allow_html=True)
|
| 71 |
st.markdown("""
|
| 72 |
+
<p style='font-size: 18px;'>
|
| 73 |
+
<b>Deep Learning</b> is a subset of machine learning that focuses on using artificial neural networks.
|
| 74 |
+
</p>
|
|
|
|
|
|
|
|
|
|
| 75 |
""", unsafe_allow_html=True)
|
| 76 |
|
| 77 |
# Section: Generative AI
|
| 78 |
+
st.markdown("<h2 style='color: #F39C12; font-size: 22px; font-weight: bold;'>Generative AI</h2>", unsafe_allow_html=True)
|
| 79 |
st.markdown("""
|
| 80 |
+
<p style='font-size: 18px;'>
|
| 81 |
+
<b>Generative AI</b> refers to AI that creates new content like images, music, text, or videos.
|
| 82 |
+
</p>
|
|
|
|
|
|
|
| 83 |
""", unsafe_allow_html=True)
|
| 84 |
|
| 85 |
# Section: Relationship Between AI, ML, DL, and Generative AI
|
| 86 |
+
st.markdown("<h2 style='color: #3498DB; font-size: 22px; font-weight: bold;'>Relationship Between AI, ML, DL, and Generative AI</h2>", unsafe_allow_html=True)
|
| 87 |
st.markdown("""
|
| 88 |
+
<p style='font-size: 18px; font-weight: bold;'>Simple Breakdown:</p>
|
| 89 |
+
<ul style='font-size: 18px;'>
|
| 90 |
+
<li><b>AI:</b> The big umbrella of intelligent systems.</li>
|
| 91 |
+
<li><b>ML:</b> A part of AI that helps machines learn from data.</li>
|
| 92 |
+
<li><b>DL:</b> A more advanced type of ML using deep neural networks.</li>
|
| 93 |
+
<li><b>Generative AI:</b> A creative branch of DL that generates new content.</li>
|
| 94 |
+
</ul>
|
|
|
|
|
|
|
| 95 |
""", unsafe_allow_html=True)
|