Spaces:
Sleeping
Sleeping
Update pages/1_Introduction.py
Browse files- pages/1_Introduction.py +1 -6
pages/1_Introduction.py
CHANGED
|
@@ -3,11 +3,6 @@ from PIL import Image
|
|
| 3 |
import base64
|
| 4 |
import io
|
| 5 |
|
| 6 |
-
with open(r"C:\Users\USER\Downloads\Screenshot 2024-12-27 183457.png", 'rb') as img_file:
|
| 7 |
-
|
| 8 |
-
encoded_string = base64.b64encode(img_file.read()).decode('utf-8')
|
| 9 |
-
print(encoded_string)
|
| 10 |
-
|
| 11 |
# Base64 encoded image string
|
| 12 |
encoded_image = "UklGRrICBgBXRUJQVlA4IKrbBABQ9xCdASoABwAEPjEWiUOiISUmJZYbuMAGCWNsiXpgHwljA+sbSoKb/m/ZfJS/8fokeQ9+Mnxx"
|
| 13 |
|
|
@@ -15,7 +10,7 @@ encoded_image = "UklGRrICBgBXRUJQVlA4IKrbBABQ9xCdASoABwAEPjEWiUOiISUmJZYbuMAGCWN
|
|
| 15 |
def decode_base64_image(encoded_str):
|
| 16 |
img_data = base64.b64decode(encoded_str)
|
| 17 |
return Image.open(io.BytesIO(img_data))
|
| 18 |
-
|
| 19 |
# Title and introduction
|
| 20 |
st.title('Understanding Machine Learning: Teaching Machines Like Children')
|
| 21 |
|
|
|
|
| 3 |
import base64
|
| 4 |
import io
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
# Base64 encoded image string
|
| 7 |
encoded_image = "UklGRrICBgBXRUJQVlA4IKrbBABQ9xCdASoABwAEPjEWiUOiISUmJZYbuMAGCWNsiXpgHwljA+sbSoKb/m/ZfJS/8fokeQ9+Mnxx"
|
| 8 |
|
|
|
|
| 10 |
def decode_base64_image(encoded_str):
|
| 11 |
img_data = base64.b64decode(encoded_str)
|
| 12 |
return Image.open(io.BytesIO(img_data))
|
| 13 |
+
st.image(r"C:\Users\USER\Downloads\Screenshot 2024-12-27 183457.png",width=500)
|
| 14 |
# Title and introduction
|
| 15 |
st.title('Understanding Machine Learning: Teaching Machines Like Children')
|
| 16 |
|