Update app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,5 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
|
| 3 |
-
# Use a relative path or adjust the file path for your environment
|
| 4 |
-
image_path = "./A_detailed_and_professional_illustration_represent.jpg" # Place the image in the app directory
|
| 5 |
-
try:
|
| 6 |
-
image = Image.open(image_path) # Load the image
|
| 7 |
-
st.image(image, caption="Machine Learning Overview", use_column_width=True)
|
| 8 |
-
except FileNotFoundError:
|
| 9 |
-
st.error("Image not found. Please ensure the file exists in the correct directory.")
|
| 10 |
def introduction_to_ml():
|
| 11 |
introduction_blog = '''
|
| 12 |
## Introduction to Machine Learning (ML)
|
|
@@ -221,10 +214,7 @@ def neural_networks():
|
|
| 221 |
return neural
|
| 222 |
|
| 223 |
|
| 224 |
-
|
| 225 |
-
# Streamlit UI Components
|
| 226 |
-
st.title("Machine Learning Concepts")
|
| 227 |
-
generate_ml_blog() # Call the function to display the image
|
| 228 |
|
| 229 |
# Display interactive elements if needed
|
| 230 |
st.sidebar.header("📚 Contents")
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
def introduction_to_ml():
|
| 4 |
introduction_blog = '''
|
| 5 |
## Introduction to Machine Learning (ML)
|
|
|
|
| 214 |
return neural
|
| 215 |
|
| 216 |
|
| 217 |
+
# Call the function to display the image
|
|
|
|
|
|
|
|
|
|
| 218 |
|
| 219 |
# Display interactive elements if needed
|
| 220 |
st.sidebar.header("📚 Contents")
|