Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -111,21 +111,14 @@ def analyze_emotion(audio, department):
|
|
| 111 |
|
| 112 |
# Better visual for AI Insight
|
| 113 |
insight_html = f"""
|
| 114 |
-
<div style="
|
| 115 |
-
|
| 116 |
-
color:
|
| 117 |
-
|
| 118 |
-
border-radius: 15px;
|
| 119 |
-
margin-top: 20px;
|
| 120 |
-
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
| 121 |
-
border-left: 6px solid #3f51b5;
|
| 122 |
-
">
|
| 123 |
-
<h3 style="margin-top: 0;">🧠 <span style="color:#3f51b5;">AI Insight</span></h3>
|
| 124 |
-
<p style="font-size:16px; margin: 8px 0;">{insights}</p>
|
| 125 |
-
<p style="font-size:13px; color:#777;">💾 Logged for Power BI visualization.</p>
|
| 126 |
</div>
|
| 127 |
"""
|
| 128 |
|
|
|
|
| 129 |
return dashboard_html, insight_html
|
| 130 |
|
| 131 |
# -------------------------------------------------
|
|
|
|
| 111 |
|
| 112 |
# Better visual for AI Insight
|
| 113 |
insight_html = f"""
|
| 114 |
+
<div style="background:#f5f5f5; padding:15px; border-radius:12px; margin-top:15px; border-left:6px solid #4a90e2;">
|
| 115 |
+
<h4 style="color:#222; margin-bottom:6px;">🧠 AI Insight</h4>
|
| 116 |
+
<p style="color:#333; font-size:16px; font-weight:500;">{insights}</p>
|
| 117 |
+
<p style="font-size:13px; color:#777;">Logged for Power BI visualization.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
</div>
|
| 119 |
"""
|
| 120 |
|
| 121 |
+
|
| 122 |
return dashboard_html, insight_html
|
| 123 |
|
| 124 |
# -------------------------------------------------
|