Spaces:
Sleeping
Sleeping
Update pages/1_Introduction.py
Browse files- pages/1_Introduction.py +3 -8
pages/1_Introduction.py
CHANGED
|
@@ -2,18 +2,13 @@ import streamlit as st
|
|
| 2 |
from PIL import Image
|
| 3 |
import io
|
| 4 |
|
| 5 |
-
# Path to the image generated by DALL-E
|
| 6 |
-
image_path = r"https://huggingface.co/spaces/Phani1008/Machine_Learning/resolve/main/images/DALL%C2%B7E%202024-12-27%2018.19.15%20-%20A%20warm%20and%20cozy%20scene%20of%20a%20father%20sitting%20with%20his%203-year-old%20child%20in%20a%20living%20room%2C%20showing%20pictures%20of%20dogs%20and%20cats.%20The%20father%20is%20pointing%20at%20a%20p.jpg"
|
| 7 |
|
| 8 |
-
# Open the image
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
image = Image.open(r"https://huggingface.co/spaces/Phani1008/Machine_Learning/resolve/main/images/DALL%C2%B7E%202024-12-27%2018.19.15%20-%20A%20warm%20and%20cozy%20scene%20of%20a%20father%20sitting%20with%20his%203-year-old%20child%20in%20a%20living%20room%2C%20showing%20pictures%20of%20dogs%20and%20cats.%20The%20father%20is%20pointing%20at%20a%20p.jpg")
|
| 12 |
-
|
| 13 |
-
st.image(image, caption='A father teaching his child by showing dog and cat pictures')
|
| 14 |
# Title and introduction
|
| 15 |
st.title('Understanding Machine Learning: Teaching Machines Like Children')
|
| 16 |
|
|
|
|
|
|
|
|
|
|
| 17 |
st.write("""
|
| 18 |
Machine Learning (ML) is like teaching a child to recognize things by showing examples. Imagine a father showing pictures of dogs and cats to his child, saying 'This is a dog' or 'This is a cat'. The child learns by associating the image with the label. Similarly, machines learn from data through two main types of learning: **Supervised** and **Unsupervised Learning**.
|
| 19 |
|
|
|
|
| 2 |
from PIL import Image
|
| 3 |
import io
|
| 4 |
|
|
|
|
|
|
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
# Title and introduction
|
| 7 |
st.title('Understanding Machine Learning: Teaching Machines Like Children')
|
| 8 |
|
| 9 |
+
st.image("https://huggingface.co/spaces/Phani1008/Machine_Learning/resolve/main/images/DALL%C2%B7E%202024-12-27%2018.19.15%20-%20A%20warm%20and%20cozy%20scene%20of%20a%20father%20sitting%20with%20his%203-year-old%20child%20in%20a%20living%20room%2C%20showing%20pictures%20of%20dogs%20and%20cats.%20The%20father%20is%20pointing%20at%20a%20p.jpg",width = 600)
|
| 10 |
+
|
| 11 |
+
|
| 12 |
st.write("""
|
| 13 |
Machine Learning (ML) is like teaching a child to recognize things by showing examples. Imagine a father showing pictures of dogs and cats to his child, saying 'This is a dog' or 'This is a cat'. The child learns by associating the image with the label. Similarly, machines learn from data through two main types of learning: **Supervised** and **Unsupervised Learning**.
|
| 14 |
|