Upload folder using huggingface_hub
Browse files- hate_speech_demo.py +17 -0
hate_speech_demo.py
CHANGED
|
@@ -168,6 +168,22 @@ body, .gradio-container {
|
|
| 168 |
transform: translateY(-2px);
|
| 169 |
}
|
| 170 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
/* Input box styling with orange border */
|
| 172 |
textarea.svelte-1pie7s6 {
|
| 173 |
border-left: 5px solid #FCA539 !important;
|
|
@@ -674,6 +690,7 @@ def create_gradio_app():
|
|
| 674 |
font-weight: bold;
|
| 675 |
}
|
| 676 |
|
|
|
|
| 677 |
"""
|
| 678 |
|
| 679 |
with gr.Blocks(title="Hate Speech Rating Oracle", theme=theme, css=custom_css) as app:
|
|
|
|
| 168 |
transform: translateY(-2px);
|
| 169 |
}
|
| 170 |
|
| 171 |
+
/* Custom gray button style */
|
| 172 |
+
.gray-button {
|
| 173 |
+
background: #4285F4 !important;
|
| 174 |
+
color: #000000 !important;
|
| 175 |
+
font-weight: bold;
|
| 176 |
+
border-radius: 5px;
|
| 177 |
+
padding: 10px 15px;
|
| 178 |
+
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
| 179 |
+
transition: all 0.3s ease;
|
| 180 |
+
font-family: 'All Round Gothic Demi', 'Poppins', sans-serif !important;
|
| 181 |
+
}
|
| 182 |
+
.gray-button:hover {
|
| 183 |
+
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
|
| 184 |
+
transform: translateY(-2px);
|
| 185 |
+
}
|
| 186 |
+
|
| 187 |
/* Input box styling with orange border */
|
| 188 |
textarea.svelte-1pie7s6 {
|
| 189 |
border-left: 5px solid #FCA539 !important;
|
|
|
|
| 690 |
font-weight: bold;
|
| 691 |
}
|
| 692 |
|
| 693 |
+
|
| 694 |
"""
|
| 695 |
|
| 696 |
with gr.Blocks(title="Hate Speech Rating Oracle", theme=theme, css=custom_css) as app:
|