Spaces:
Sleeping
Sleeping
Commit
·
f401cbd
1
Parent(s):
7ebcb4e
Changes for css
Browse files
app.py
CHANGED
@@ -113,13 +113,51 @@ def update_sample(sample):
|
|
113 |
|
114 |
|
115 |
import gradio as gr
|
116 |
-
|
117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
# Header section with larger, centered title
|
119 |
-
gr.Markdown("<h1 style='text-align: center;'>Collinear Guard Nano</h1>")
|
120 |
gr.Markdown(
|
121 |
"""
|
122 |
-
<p style='text-align: center;'>
|
123 |
Test Collinear guard nano and comapare with llama guard 3 using the sample conversations below or type your own.
|
124 |
Collinear guard nano supports 3 types of safety tasks -- prompt classification, response classification, and refusal classification.
|
125 |
</p>
|
|
|
113 |
|
114 |
|
115 |
import gradio as gr
|
116 |
+
dark_css = """
|
117 |
+
body {
|
118 |
+
background-color: #1a1a1a !important;
|
119 |
+
color: #f5f5f5 !important;
|
120 |
+
}
|
121 |
+
.gradio-container {
|
122 |
+
background-color: #1a1a1a !important;
|
123 |
+
color: #FFFFFF !important;
|
124 |
+
}
|
125 |
+
.container {
|
126 |
+
background-color: #1a1a1a !important;
|
127 |
+
color: #FFFFFF !important;
|
128 |
+
}
|
129 |
+
.form {
|
130 |
+
background-color: #1a1a1a !important;
|
131 |
+
color: #FFFFFF !important;
|
132 |
+
}
|
133 |
+
.gap {
|
134 |
+
background-color: #1a1a1a !important;
|
135 |
+
color: #FFFFFF !important;
|
136 |
+
}
|
137 |
+
#orange-button{ background-color: #FFA500 !important; color: #000000}
|
138 |
+
|
139 |
+
.block {
|
140 |
+
background-color: #1a1a1a !important;
|
141 |
+
color: #FFFFFF !important;
|
142 |
+
}
|
143 |
+
.wrap {
|
144 |
+
background-color: #1a1a1a !important;
|
145 |
+
color: #FFFFFF !important;
|
146 |
+
}
|
147 |
+
textarea, input, select, button {
|
148 |
+
background-color: #333333 !important;
|
149 |
+
color: #f5f5f5 !important;
|
150 |
+
border-color: #555555 !important;
|
151 |
+
}
|
152 |
+
label {
|
153 |
+
color: #f5f5f5 !important;
|
154 |
+
}"""
|
155 |
+
with gr.Blocks(css=dark_css) as demo:
|
156 |
# Header section with larger, centered title
|
157 |
+
gr.Markdown("<h1 style='text-align: center;color:white'>Collinear Guard Nano</h1>")
|
158 |
gr.Markdown(
|
159 |
"""
|
160 |
+
<p style='text-align: center;color:white'>
|
161 |
Test Collinear guard nano and comapare with llama guard 3 using the sample conversations below or type your own.
|
162 |
Collinear guard nano supports 3 types of safety tasks -- prompt classification, response classification, and refusal classification.
|
163 |
</p>
|