Spaces:
Sleeping
Sleeping
Update app.py
Browse files364 unmodified lines36536636736836936836937037137237337437537637737837938038138238338438538638737137237337438838939039139237637739339439539639737938038139839940038338438538640140240340440538838940640740840941039139239339439539639739841141241341441541641741840040141942042142242342442542642742842943043143243343443543643743843944044144240344344440540640744544644740941041144844945045145245341345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548641541641741841942048748848949083 unmodified lines574575576510577512513514515516578579580581582583584585586364 unmodified lines
# ββββββββββββββββββββββ TEAM CARDS ββββββββββββββββββββββ with gr.Column(scale=1, min_width=220): gr.HTML(""" gr.HTML(""" <div style=" min-height: 100vh; padding: 100px 20px; background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e); background-size: 400% 400%; animation: gradientShift 15s ease infinite; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: white; position: relative; overflow: hidden; "> <h2 style=" font-size: 3.5rem; font-weight: 800; margin: 0 0 60px; background: linear-gradient(90deg, #00ff88, #ffaa00, #aa00ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: 3px; "> MEET THE TEAM </h2>
<div style="display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; max-width: 1200px;"> <!-- Muhammad Shafran --> <div style=" background: rgba(255,255,255,0.15); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; padding: 24px; text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,0.1); border-left: 6px solid #00ff88; height: 100%; background: rgba(255,255,255,0.15); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.25); border-radius: 24px; padding: 32px; width: 280px; box-shadow: 0 12px 40px rgba(0,0,0,0.2); border-left: 8px solid #00ff88; "> <h3 style="margin:0 0 8px; color:#fff; font-weight:600;">Muhammad Shafran</h3> <p style="margin:0; color:#ddd; font-weight:500;">RP21-EE-416</p> <h3 style="margin:0 0 12px; color:#fff; font-size:1.6rem; font-weight:600;"> Muhammad Shafran </h3> <p style="margin:0; color:#ddd; font-size:1.1rem;">RP21-EE-416</p> </div> """) with gr.Column(scale=1, min_width=220): gr.HTML("""
<!-- Hadia Shahid --> <div style=" background: rgba(255,255,255,0.15); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; padding: 24px; text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,0.1); border-left: 6px solid #ffaa00; height: 100%; background: rgba(255,255,255,0.15); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.25); border-radius: 24px; padding: 32px; width: 280px; box-shadow: 0 12px 40px rgba(0,0,0,0.2); border-left: 8px solid #ffaa00; "> <h3 style="margin:0 0 8px; color:#fff; font-weight:600;">Hadia Shahid</h3> <p style="margin:0; color:#ddd; font-weight:500;">RP21-EE-424</p> <h3 style="margin:0 0 12px; color:#fff; font-size:1.6rem; font-weight:600;"> Hadia Shahid </h3> <p style="margin:0; color:#ddd; font-size:1.1rem;">RP21-EE-424</p> </div> """) with gr.Column(scale=1, min_width=220): gr.HTML(""" <div style=" background: rgba(255,255,255,0.15); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; padding: 24px; text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,0.1); border-left: 6px solid #aa00ff; height: 100%;
<!-- Zulqarnain Haider --> <div style=" background: rgba(255,255,255,0.15); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.25); border-radius: 24px; padding: 32px; width: 280px; box-shadow: 0 12px 40px rgba(0,0,0,0.2); border-left: 8px solid #aa00ff; "> <h3 style="margin:0 0 8px; color:#fff; font-weight:600;">Zulqarnain Haider</h3> <p style="margin:0; color:#ddd; font-weight:500;">RP21-EE-433</p> <h3 style="margin:0 0 12px; color:#fff; font-size:1.6rem; font-weight:600;"> Zulqarnain Haider </h3> <p style="margin:0; color:#ddd; font-size:1.1rem;">RP21-EE-433</p> </div> </div>
<!-- Supervisor --> <div style=" margin-top: 80px; padding: 20px 40px; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border-radius: 16px; border: 1px solid rgba(255,255,255,0.2); font-size: 1.3rem; font-weight: 600; color: #ccc; "> <strong>Supervisor:</strong> Dr. Danish </div>
<!-- Scroll Hint --> <div style="position: absolute; bottom: 40px; animation: bounce 2s infinite;"> <svg width="36" height="36" viewBox="0 0 24 24" fill="none" stroke="#00ff88" stroke-width="2"> <path d="M7 13l5 5 5-5"></path> </svg> </div> </div> """) """)
# ββββββββββββββββββββββ SUPERVISOR CARD ββββββββββββββββββββββ gr.HTML( """ # ββββββββββββββββββββββ SECTION 2: PRODUCT DESCRIPTION (FULL-SCREEN) ββββββββββββββββββββββ gr.HTML(""" <div style=" text-align:center; margin:20px 0; padding:12px; background:#f8f9fa; border-radius:12px; font-size:1.1rem; color:#333; font-weight:600; min-height: 100vh; padding: 120px 20px; background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460); background-size: 400% 400%; animation: gradientShift 18s ease infinite; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: white; position: relative; "> <strong>Supervisor:</strong> Dr. Danish <h2 style=" font-size: 3.8rem; font-weight: 900; margin: 0 0 50px; background: linear-gradient(90deg, #aa00ff, #00ff88); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: 2px; "> NEUROSENSE </h2> <h3 style="font-size: 2rem; margin: 0 0 40px; color: #00ff88; font-weight: 600;"> The Brain IMDb </h3> <div style="max-width: 900px; line-height: 1.8; font-size: 1.2rem; color: #ddd;"> <p> NeuroSense is an AI-powered emotion recognition system that decodes human feelings from EEG brainwave data in real-time. Using advanced deep learning models (CNN-GRU), it classifies emotions such as <strong>Focused</strong>, <strong>Funny</strong>, <strong>Meditation</strong>, <strong>Normal</strong>, and <strong>Sad</strong> β second by second. </p> <p style="margin-top: 20px;"> Whether you're analyzing meditation sessions, detecting focus in learning, or exploring emotional responses to humor, NeuroSense turns raw brain signals into meaningful insights β just like IMDb does for movies. </p> <p style="margin-top: 20px; font-style: italic; color: #aaa;"> "Your brain doesn't lie. We just help you listen." </p> </div>
<!-- Scroll Hint --> <div style="position: absolute; bottom: 40px; animation: bounce 2s infinite;"> <svg width="36" height="36" viewBox="0 0 24 24" fill="none" stroke="#00ff88" stroke-width="2"> <path d="M7 13l5 5 5-5"></path> </svg> </div> </div> """ )
gr.Markdown("---") gr.HTML("<div style='height:30px;'></div>") # Space
""") # === MAIN ANALYZER SECTION === with gr.Row():83 unmodified lines outputs=None, js=""" () => { // Smooth scroll document.documentElement.style.scrollBehavior = 'smooth'; // Optional: Auto-scroll after 2s setTimeout(() => { document.getElementById('main-content')?.scrollIntoView({ behavior: 'smooth' }); }, 2000); const style = document.createElement('style'); style.innerHTML = ` @keyframes gradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } } @keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } } `; document.head.appendChild(style); } """ )app.py+114-47