Mpavan45 commited on
Commit
8b82ddd
·
verified ·
1 Parent(s): 864584b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1,12 +1,11 @@
1
  import streamlit as st
 
2
 
3
  # Function to generate ML blog content
4
  def generate_ml_blog():
5
  # Display an ML-related image
6
  image = Image.open(r"C:\Users\user\Downloads\A_detailed_and_professional_illustration_represent.jpg") # Replace with your image path
7
- blog=st.image(image, caption="Machine Learning Overview", use_column_width=True)
8
-
9
- return blog
10
 
11
  def introduction_to_ml():
12
  introduction_blog = '''
@@ -222,9 +221,10 @@ def neural_networks():
222
  return neural
223
 
224
 
225
- # Streamlit UI Components
226
- st.markdown(generate_ml_blog())
227
 
 
 
 
228
 
229
  # Display interactive elements if needed
230
  st.sidebar.header("📚 Contents")
 
1
  import streamlit as st
2
+ from PIL import Image # Ensure this import is present
3
 
4
  # Function to generate ML blog content
5
  def generate_ml_blog():
6
  # Display an ML-related image
7
  image = Image.open(r"C:\Users\user\Downloads\A_detailed_and_professional_illustration_represent.jpg") # Replace with your image path
8
+ st.image(image, caption="Machine Learning Overview", use_column_width=True)
 
 
9
 
10
  def introduction_to_ml():
11
  introduction_blog = '''
 
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")