Spaces:
Sleeping
Sleeping
Update Home.py
Browse files
Home.py
CHANGED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
# ๐จ Custom CSS
|
| 4 |
+
st.markdown("""
|
| 5 |
+
<style>
|
| 6 |
+
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500&display=swap');
|
| 7 |
+
body {
|
| 8 |
+
background: #111827;
|
| 9 |
+
color: white;
|
| 10 |
+
font-family: 'Poppins', sans-serif;
|
| 11 |
+
}
|
| 12 |
+
h1, h2 {
|
| 13 |
+
text-align: center;
|
| 14 |
+
color: #00FFFF;
|
| 15 |
+
text-shadow: 0 0 8px rgba(0,255,255,0.6);
|
| 16 |
+
}
|
| 17 |
+
.section {
|
| 18 |
+
background: rgba(255, 255, 255, 0.05);
|
| 19 |
+
padding: 20px;
|
| 20 |
+
border-radius: 12px;
|
| 21 |
+
margin-bottom: 25px;
|
| 22 |
+
box-shadow: 0 4px 10px rgba(0,255,255,0.15);
|
| 23 |
+
}
|
| 24 |
+
.button-container {
|
| 25 |
+
text-align: center;
|
| 26 |
+
margin-top: 20px;
|
| 27 |
+
}
|
| 28 |
+
.glow-button {
|
| 29 |
+
background: linear-gradient(90deg, #00FFFF, #00BFFF);
|
| 30 |
+
border: none;
|
| 31 |
+
padding: 10px 24px;
|
| 32 |
+
color: black;
|
| 33 |
+
font-weight: bold;
|
| 34 |
+
border-radius: 20px;
|
| 35 |
+
margin: 6px;
|
| 36 |
+
font-size: 14px;
|
| 37 |
+
box-shadow: 0px 0px 8px rgba(0,255,255,0.5);
|
| 38 |
+
text-decoration: none;
|
| 39 |
+
display: inline-block;
|
| 40 |
+
}
|
| 41 |
+
.glow-button:hover {
|
| 42 |
+
transform: scale(1.05);
|
| 43 |
+
box-shadow: 0px 0px 15px rgba(0,255,255,1);
|
| 44 |
+
}
|
| 45 |
+
</style>
|
| 46 |
+
""", unsafe_allow_html=True)
|
| 47 |
+
|
| 48 |
+
# ๐ Header
|
| 49 |
+
st.markdown("<h1>๐ฌ Neural Network Playground</h1>", unsafe_allow_html=True)
|
| 50 |
+
|
| 51 |
+
# ๐ About Section
|
| 52 |
+
st.markdown('<div class="section">', unsafe_allow_html=True)
|
| 53 |
+
st.markdown("## ๐ค What is this App?")
|
| 54 |
+
st.write("This interactive app lets you explore neural networks in 2D using synthetic datasets. Visualize decision boundaries, test different architectures, and train models right in your browser using Keras and TensorFlow!")
|
| 55 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
| 56 |
+
|
| 57 |
+
# ๐ Features
|
| 58 |
+
st.markdown('<div class="section">', unsafe_allow_html=True)
|
| 59 |
+
st.markdown("## ๐ง Key Features")
|
| 60 |
+
st.markdown("""
|
| 61 |
+
- ๐ Multiple synthetic datasets (`moons`, `circles`, `blobs`, etc.)
|
| 62 |
+
- ๐งฑ Choose number of hidden layers (including zero!)
|
| 63 |
+
- โ๏ธ Adjustable neurons per layer & activation functions
|
| 64 |
+
- ๐งฎ Live decision boundary visualization
|
| 65 |
+
- ๐ Training loss and validation curves
|
| 66 |
+
""")
|
| 67 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
| 68 |
+
|
| 69 |
+
# ๐ค Creator Section
|
| 70 |
+
st.markdown('<div class="section">', unsafe_allow_html=True)
|
| 71 |
+
st.markdown("## ๐จโ๐ป About the Creator")
|
| 72 |
+
st.write("Built by a passionate developer blending Machine Learning with interactive visualization tools to make learning intuitive and engaging.")
|
| 73 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
| 74 |
+
|
| 75 |
+
# ๐ฌ Contact / Footer
|
| 76 |
+
st.markdown('<div class="section">', unsafe_allow_html=True)
|
| 77 |
+
st.markdown("## ๐ฌ Contact Me")
|
| 78 |
+
st.markdown('<div class="button-container">', unsafe_allow_html=True)
|
| 79 |
+
st.markdown("""
|
| 80 |
+
[<a class="glow-button" href="https://www.linkedin.com/in/dommeti-thoran-raj-692769191/" target="_blank">LinkedIn</a>]
|
| 81 |
+
[<a class="glow-button" href="https://github.com/raj2216" target="_blank">GitHub</a>]
|
| 82 |
+
[<a class="glow-button" href="mailto:rajbunny2216@gmail.com">Email</a>]
|
| 83 |
+
""", unsafe_allow_html=True)
|
| 84 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
| 85 |
+
st.markdown('</div>', unsafe_allow_html=True)
|