Spaces:
Sleeping
Sleeping
Final Release Fix: Replace Div with Group to resolve runtime error
Browse files
app.py
CHANGED
|
@@ -372,7 +372,7 @@ theme = gr.themes.Soft(
|
|
| 372 |
with gr.Blocks(theme=theme, css=CUSTOM_CSS, title="Emotion2Music AI — Final Release") as demo:
|
| 373 |
|
| 374 |
# --- Header Branding ---
|
| 375 |
-
with gr.
|
| 376 |
gr.HTML("""
|
| 377 |
<h1 class='main-title'>Emotion2Music AI</h1>
|
| 378 |
<p class='creator-tag'>Developed by <a href='https://ansaribilal.com' target='_blank' class='creator-link'>Ansari Bilal</a></p>
|
|
@@ -390,7 +390,7 @@ with gr.Blocks(theme=theme, css=CUSTOM_CSS, title="Emotion2Music AI — Final Re
|
|
| 390 |
elem_id="mood-input",
|
| 391 |
)
|
| 392 |
|
| 393 |
-
with gr.
|
| 394 |
gr.Markdown("### ⏱️ Step 2: Duration")
|
| 395 |
duration_slider = gr.Slider(
|
| 396 |
minimum=5,
|
|
@@ -426,7 +426,7 @@ with gr.Blocks(theme=theme, css=CUSTOM_CSS, title="Emotion2Music AI — Final Re
|
|
| 426 |
with gr.Column(scale=1, elem_classes="glass-card"):
|
| 427 |
gr.Markdown("### 🧠 Step 3: AI Insights")
|
| 428 |
|
| 429 |
-
with gr.
|
| 430 |
emotion_output = gr.Markdown(
|
| 431 |
value="*Analysis will appear here after detection...*",
|
| 432 |
elem_id="emotion-results",
|
|
@@ -461,7 +461,7 @@ with gr.Blocks(theme=theme, css=CUSTOM_CSS, title="Emotion2Music AI — Final Re
|
|
| 461 |
)
|
| 462 |
|
| 463 |
# --- Footer Branding ---
|
| 464 |
-
with gr.
|
| 465 |
gr.HTML(f"""
|
| 466 |
<p style='color: white; margin-bottom: 20px;'>© 2026 Ansari Bilal. All rights reserved.</p>
|
| 467 |
<div style='display: flex; justify-content: center; gap: 20px;'>
|
|
|
|
| 372 |
with gr.Blocks(theme=theme, css=CUSTOM_CSS, title="Emotion2Music AI — Final Release") as demo:
|
| 373 |
|
| 374 |
# --- Header Branding ---
|
| 375 |
+
with gr.Group(elem_id="brand-header"):
|
| 376 |
gr.HTML("""
|
| 377 |
<h1 class='main-title'>Emotion2Music AI</h1>
|
| 378 |
<p class='creator-tag'>Developed by <a href='https://ansaribilal.com' target='_blank' class='creator-link'>Ansari Bilal</a></p>
|
|
|
|
| 390 |
elem_id="mood-input",
|
| 391 |
)
|
| 392 |
|
| 393 |
+
with gr.Group(elem_classes="slider-container"):
|
| 394 |
gr.Markdown("### ⏱️ Step 2: Duration")
|
| 395 |
duration_slider = gr.Slider(
|
| 396 |
minimum=5,
|
|
|
|
| 426 |
with gr.Column(scale=1, elem_classes="glass-card"):
|
| 427 |
gr.Markdown("### 🧠 Step 3: AI Insights")
|
| 428 |
|
| 429 |
+
with gr.Group(elem_classes="emotion-bar-container"):
|
| 430 |
emotion_output = gr.Markdown(
|
| 431 |
value="*Analysis will appear here after detection...*",
|
| 432 |
elem_id="emotion-results",
|
|
|
|
| 461 |
)
|
| 462 |
|
| 463 |
# --- Footer Branding ---
|
| 464 |
+
with gr.Group(elem_id="footer-area"):
|
| 465 |
gr.HTML(f"""
|
| 466 |
<p style='color: white; margin-bottom: 20px;'>© 2026 Ansari Bilal. All rights reserved.</p>
|
| 467 |
<div style='display: flex; justify-content: center; gap: 20px;'>
|