Spaces:
Sleeping
Sleeping
Update Home.py
Browse files
Home.py
CHANGED
|
@@ -1,124 +1,87 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
from streamlit_lottie import st_lottie
|
| 3 |
-
import requests
|
| 4 |
|
| 5 |
-
# Custom CSS
|
| 6 |
st.markdown("""
|
| 7 |
<style>
|
| 8 |
-
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;
|
| 9 |
-
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&display=swap');
|
| 10 |
-
|
| 11 |
body {
|
| 12 |
-
background:
|
| 13 |
-
font-family: 'Poppins', sans-serif;
|
| 14 |
color: white;
|
|
|
|
| 15 |
}
|
| 16 |
-
|
| 17 |
-
/* Header Styling */
|
| 18 |
-
h1, h2, h3 {
|
| 19 |
text-align: center;
|
| 20 |
-
color: #00FFFF; /* Bright Cyan */
|
| 21 |
-
text-shadow: 0px 0px 12px rgba(0, 255, 255, 1),
|
| 22 |
-
0px 0px 20px rgba(0, 128, 255, 0.8);
|
| 23 |
-
}
|
| 24 |
-
|
| 25 |
-
.custom-subheader {
|
| 26 |
color: #00FFFF;
|
| 27 |
-
|
| 28 |
-
font-weight: 600;
|
| 29 |
-
font-size: 28px;
|
| 30 |
-
margin-bottom: 15px;
|
| 31 |
-
text-align: center;
|
| 32 |
}
|
| 33 |
-
|
| 34 |
-
/* Section Background */
|
| 35 |
.section {
|
| 36 |
-
background: rgba(255, 255, 255, 0.
|
| 37 |
padding: 20px;
|
| 38 |
-
border-radius:
|
| 39 |
-
margin-bottom:
|
| 40 |
-
box-shadow:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
}
|
| 42 |
-
|
| 43 |
-
/* Glowing Button */
|
| 44 |
.glow-button {
|
| 45 |
-
background: linear-gradient(90deg, #00FFFF, #
|
| 46 |
border: none;
|
| 47 |
-
padding:
|
| 48 |
color: black;
|
| 49 |
font-weight: bold;
|
| 50 |
-
border-radius:
|
| 51 |
-
|
| 52 |
-
|
|
|
|
| 53 |
text-decoration: none;
|
| 54 |
display: inline-block;
|
| 55 |
-
text-align: center;
|
| 56 |
-
font-size: 16px;
|
| 57 |
-
margin: 10px 5px;
|
| 58 |
}
|
| 59 |
-
|
| 60 |
.glow-button:hover {
|
| 61 |
-
transform: scale(1.
|
| 62 |
-
box-shadow: 0px 0px
|
| 63 |
-
}
|
| 64 |
-
|
| 65 |
-
.button-container {
|
| 66 |
-
text-align: center;
|
| 67 |
-
margin-top: 15px;
|
| 68 |
-
margin-bottom: 20px;
|
| 69 |
}
|
| 70 |
</style>
|
| 71 |
""", unsafe_allow_html=True)
|
| 72 |
|
|
|
|
|
|
|
| 73 |
|
| 74 |
-
#
|
| 75 |
-
st.markdown("<h1 class='custom-subheader'>๐ Crick-o-Meter: Unleashing Data-Driven Cricket Insights! ๐๐ฅ</h1>", unsafe_allow_html=True)
|
| 76 |
-
|
| 77 |
-
# Lottie Animation
|
| 78 |
-
@st.cache_data
|
| 79 |
-
def load_lottie_url(url: str):
|
| 80 |
-
response = requests.get(url)
|
| 81 |
-
if response.status_code != 200:
|
| 82 |
-
return None
|
| 83 |
-
return response.json()
|
| 84 |
-
|
| 85 |
-
lottie_animation = load_lottie_url("https://lottie.host/6e182649-61a6-4683-8680-5493855ac08a/G0pStmcS8T.json")
|
| 86 |
-
st_lottie(lottie_animation, height=200, key="cricket")
|
| 87 |
-
|
| 88 |
-
# About the App
|
| 89 |
st.markdown('<div class="section">', unsafe_allow_html=True)
|
| 90 |
-
st.markdown("
|
| 91 |
-
st.write("
|
| 92 |
st.markdown('</div>', unsafe_allow_html=True)
|
| 93 |
|
| 94 |
-
#
|
| 95 |
st.markdown('<div class="section">', unsafe_allow_html=True)
|
| 96 |
-
st.markdown("
|
| 97 |
st.markdown("""
|
| 98 |
-
-
|
| 99 |
-
-
|
| 100 |
-
-
|
| 101 |
-
-
|
|
|
|
| 102 |
""")
|
| 103 |
st.markdown('</div>', unsafe_allow_html=True)
|
| 104 |
|
| 105 |
-
#
|
| 106 |
st.markdown('<div class="section">', unsafe_allow_html=True)
|
| 107 |
-
st.markdown("
|
| 108 |
-
st.write("
|
| 109 |
st.markdown('</div>', unsafe_allow_html=True)
|
| 110 |
|
| 111 |
-
# Contact
|
| 112 |
st.markdown('<div class="section">', unsafe_allow_html=True)
|
| 113 |
-
st.markdown("
|
| 114 |
-
|
| 115 |
-
# Button Section (Now Centered with Space)
|
| 116 |
st.markdown('<div class="button-container">', unsafe_allow_html=True)
|
| 117 |
st.markdown("""
|
| 118 |
-
[<
|
| 119 |
-
[<
|
| 120 |
-
[<
|
| 121 |
""", unsafe_allow_html=True)
|
| 122 |
st.markdown('</div>', unsafe_allow_html=True)
|
| 123 |
-
|
| 124 |
st.markdown('</div>', unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
| 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)
|
| 86 |
+
|
| 87 |
+
|