Upload folder using huggingface_hub
Browse files- hate_speech_demo.py +5 -5
hate_speech_demo.py
CHANGED
|
@@ -143,7 +143,7 @@ body, .gradio-container {
|
|
| 143 |
.result-header {
|
| 144 |
font-size: 18px;
|
| 145 |
font-weight: bold;
|
| 146 |
-
margin-bottom:
|
| 147 |
padding-bottom: 5px;
|
| 148 |
border-bottom: 1px solid #eee;
|
| 149 |
font-family: 'All Round Gothic Demi', 'Poppins', sans-serif !important;
|
|
@@ -829,7 +829,7 @@ def create_gradio_app():
|
|
| 829 |
|
| 830 |
# π Contextual Safety Oracle
|
| 831 |
gr.HTML("""
|
| 832 |
-
<div class="result-header" style="display: flex; align-items: center; gap:
|
| 833 |
<span>π Contextual Safety Oracle</span>
|
| 834 |
<a href="#" class="knowledge-button" onclick="openPolicyPopup(); return false;">View policy</a>
|
| 835 |
</div>
|
|
@@ -839,7 +839,7 @@ def create_gradio_app():
|
|
| 839 |
|
| 840 |
# π¦ LlamaGuard
|
| 841 |
gr.HTML("""
|
| 842 |
-
<div class="result-header" style="display: flex; align-items: center; gap:
|
| 843 |
<span>LlamaGuard 3.0</span>
|
| 844 |
<a href="https://github.com/meta-llama/PurpleLlama/blob/main/Llama-Guard3/8B/MODEL_CARD.md"
|
| 845 |
target="_blank" class="knowledge-button">View model card</a>
|
|
@@ -849,7 +849,7 @@ def create_gradio_app():
|
|
| 849 |
|
| 850 |
# π§· OpenAI Moderation
|
| 851 |
gr.HTML("""
|
| 852 |
-
<div class="result-header" style="display: flex; align-items: center; gap:
|
| 853 |
<span>OpenAI Moderation</span>
|
| 854 |
<a href="https://platform.openai.com/docs/guides/moderation"
|
| 855 |
target="_blank" class="knowledge-button">View model card</a>
|
|
@@ -859,7 +859,7 @@ def create_gradio_app():
|
|
| 859 |
|
| 860 |
# π§© Perspective API
|
| 861 |
gr.HTML("""
|
| 862 |
-
<div class="result-header" style="display: flex; align-items: center; gap:
|
| 863 |
<span>Perspective API</span>
|
| 864 |
<a href="https://developers.perspectiveapi.com/s/docs"
|
| 865 |
target="_blank" class="knowledge-button">View docs</a>
|
|
|
|
| 143 |
.result-header {
|
| 144 |
font-size: 18px;
|
| 145 |
font-weight: bold;
|
| 146 |
+
margin-bottom: 0px;
|
| 147 |
padding-bottom: 5px;
|
| 148 |
border-bottom: 1px solid #eee;
|
| 149 |
font-family: 'All Round Gothic Demi', 'Poppins', sans-serif !important;
|
|
|
|
| 829 |
|
| 830 |
# π Contextual Safety Oracle
|
| 831 |
gr.HTML("""
|
| 832 |
+
<div class="result-header" style="display: flex; align-items: center; gap: 10px;">
|
| 833 |
<span>π Contextual Safety Oracle</span>
|
| 834 |
<a href="#" class="knowledge-button" onclick="openPolicyPopup(); return false;">View policy</a>
|
| 835 |
</div>
|
|
|
|
| 839 |
|
| 840 |
# π¦ LlamaGuard
|
| 841 |
gr.HTML("""
|
| 842 |
+
<div class="result-header" style="display: flex; align-items: center; gap: 10px;">
|
| 843 |
<span>LlamaGuard 3.0</span>
|
| 844 |
<a href="https://github.com/meta-llama/PurpleLlama/blob/main/Llama-Guard3/8B/MODEL_CARD.md"
|
| 845 |
target="_blank" class="knowledge-button">View model card</a>
|
|
|
|
| 849 |
|
| 850 |
# π§· OpenAI Moderation
|
| 851 |
gr.HTML("""
|
| 852 |
+
<div class="result-header" style="display: flex; align-items: center; gap: 10px;">
|
| 853 |
<span>OpenAI Moderation</span>
|
| 854 |
<a href="https://platform.openai.com/docs/guides/moderation"
|
| 855 |
target="_blank" class="knowledge-button">View model card</a>
|
|
|
|
| 859 |
|
| 860 |
# π§© Perspective API
|
| 861 |
gr.HTML("""
|
| 862 |
+
<div class="result-header" style="display: flex; align-items: center; gap: 10px;">
|
| 863 |
<span>Perspective API</span>
|
| 864 |
<a href="https://developers.perspectiveapi.com/s/docs"
|
| 865 |
target="_blank" class="knowledge-button">View docs</a>
|