Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,21 +76,9 @@ examples = [
|
|
| 76 |
["These [group] people are ruining our country"],
|
| 77 |
]
|
| 78 |
|
| 79 |
-
|
| 80 |
-
.gradio-container {
|
| 81 |
-
max-width: 800px !important;
|
| 82 |
-
margin: auto !important;
|
| 83 |
-
}
|
| 84 |
-
.center-content {
|
| 85 |
-
display: flex;
|
| 86 |
-
flex-direction: column;
|
| 87 |
-
align-items: center;
|
| 88 |
-
}
|
| 89 |
-
"""
|
| 90 |
-
|
| 91 |
-
with gr.Blocks(title="SRA Hate Speech Detection", css=css) as demo:
|
| 92 |
gr.HTML("""
|
| 93 |
-
<div style="text-align: center; margin-bottom: 24px;">
|
| 94 |
<span style="background: rgba(245,158,11,0.2); color: #f59e0b; padding: 4px 12px; border-radius: 16px; font-size: 14px;">🎯 AAAI-26 AI Alignment Track</span>
|
| 95 |
<h1 style="margin: 12px 0 4px 0;">Self-Explaining Hate Speech Detection</h1>
|
| 96 |
<p style="color: #666;">Supervised Rational Attention (SRA) · 2.4× better explainability</p>
|
|
|
|
| 76 |
["These [group] people are ruining our country"],
|
| 77 |
]
|
| 78 |
|
| 79 |
+
with gr.Blocks(title="SRA Hate Speech Detection") as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
gr.HTML("""
|
| 81 |
+
<div style="max-width: 800px; margin: 0 auto; text-align: center; margin-bottom: 24px;">
|
| 82 |
<span style="background: rgba(245,158,11,0.2); color: #f59e0b; padding: 4px 12px; border-radius: 16px; font-size: 14px;">🎯 AAAI-26 AI Alignment Track</span>
|
| 83 |
<h1 style="margin: 12px 0 4px 0;">Self-Explaining Hate Speech Detection</h1>
|
| 84 |
<p style="color: #666;">Supervised Rational Attention (SRA) · 2.4× better explainability</p>
|