import streamlit as st
import base64
# Set Streamlit page config
st.set_page_config(page_title="๐ง Neural Network Playground", layout="wide")
# Function to blur only the background image (not the whole app)
def set_background_blur(image_path):
with open(image_path, "rb") as image_file:
encoded = base64.b64encode(image_file.read()).decode()
st.markdown(
f"""
""",
unsafe_allow_html=True
)
# Call the background function with your image
set_background_blur("ann.jpeg") # Make sure ann.jpeg is in the same directory
# Typing animation title
st.markdown("โก Neural Network Lab
", unsafe_allow_html=True)
st.markdown("### ๐งช *Tinker. Train. Transform. โ Explore neural networks like never before!*")
# Add a horizontal line
st.markdown("
", unsafe_allow_html=True)
# Collapsible section for details
with st.expander("๐ Click to Learn More About This App"):
st.markdown("""
### ๐ง What You Can Do Here
- ๐งฉ Choose from datasets like **Moons**, **Circles**, or **Custom Classification**
- ๐ข Tweak model structure: layers, neurons, activations, learning rate
- ๐ Train interactively and watch how it learns over time
- ๐จ Visualize decision boundaries and loss curves instantly
### ๐ฏ Why Use This?
- ๐ See neural network behavior come to life
- ๐ง Understand how changes impact learning
- ๐ Perfect for education, demos, and self-learning
""")
# Add another subtle separator
st.markdown("
", unsafe_allow_html=True)