Update gradio_keylock/component.py
Browse files- gradio_keylock/component.py +1 -15
gradio_keylock/component.py
CHANGED
@@ -175,7 +175,6 @@ class KeylockDecoderComponent:
|
|
175 |
margin: 4rem auto !important;
|
176 |
margin-top: 0px !important;
|
177 |
padding: 2rem 2.5rem;
|
178 |
-
background-color: rgba(22, 27, 34, 0.85);
|
179 |
border: 1px solid #30363d;
|
180 |
border-radius: 12px;
|
181 |
box-shadow: 0 8px 32px rgba(0,0,0,0.5);
|
@@ -195,11 +194,9 @@ class KeylockDecoderComponent:
|
|
195 |
font-size: 24px;
|
196 |
font-weight: 600;
|
197 |
margin: 0;
|
198 |
-
color: var(--primary-100);
|
199 |
|
200 |
}
|
201 |
#image-upload-box {
|
202 |
-
background-color: var(--primary-100) !important; /* #0d1117 */
|
203 |
border: 2px dashed #30363d !important;
|
204 |
border-radius: 8px !important;
|
205 |
min-height: 220px;
|
@@ -207,13 +204,11 @@ class KeylockDecoderComponent:
|
|
207 |
}
|
208 |
#image-upload-box:hover {
|
209 |
border-color: #58a6ff !important;
|
210 |
-
background-color: #161b22 !important;
|
211 |
}
|
212 |
#image-upload-box .!h-full.w-full > div:first-of-type {
|
213 |
display: flex;
|
214 |
align-items: center;
|
215 |
justify-content: center;
|
216 |
-
color: #8b949e;
|
217 |
}
|
218 |
#status-display {
|
219 |
text-align: center;
|
@@ -221,7 +216,6 @@ class KeylockDecoderComponent:
|
|
221 |
border-radius: 6px;
|
222 |
margin-top: 1rem;
|
223 |
min-height: 50px;
|
224 |
-
background-color: #161b22;
|
225 |
border: 1px solid #30363d;
|
226 |
transition: all 0.3s ease;
|
227 |
}
|
@@ -232,24 +226,16 @@ class KeylockDecoderComponent:
|
|
232 |
text-align: left;
|
233 |
}
|
234 |
#status-display li {
|
235 |
-
background-color: #0d1117;
|
236 |
padding: 0.5rem;
|
237 |
margin-top: 0.5rem;
|
238 |
border-radius: 4px;
|
239 |
border: 1px solid #30363d;
|
240 |
}
|
241 |
.tool-accordion {
|
242 |
-
border-color: #30363d !important;
|
243 |
-
background-color: #0d1117 !important;
|
244 |
border-radius: 8px !important;
|
245 |
margin-top: 1.5rem;
|
246 |
}
|
247 |
-
|
248 |
-
color: var(--primary-100);
|
249 |
-
}
|
250 |
-
.tool-accordion > .label-wrap {
|
251 |
-
background-color: #161b22 !important;
|
252 |
-
}
|
253 |
"""
|
254 |
|
255 |
def _handle_login_attempt(self, image_input: Image.Image):
|
|
|
175 |
margin: 4rem auto !important;
|
176 |
margin-top: 0px !important;
|
177 |
padding: 2rem 2.5rem;
|
|
|
178 |
border: 1px solid #30363d;
|
179 |
border-radius: 12px;
|
180 |
box-shadow: 0 8px 32px rgba(0,0,0,0.5);
|
|
|
194 |
font-size: 24px;
|
195 |
font-weight: 600;
|
196 |
margin: 0;
|
|
|
197 |
|
198 |
}
|
199 |
#image-upload-box {
|
|
|
200 |
border: 2px dashed #30363d !important;
|
201 |
border-radius: 8px !important;
|
202 |
min-height: 220px;
|
|
|
204 |
}
|
205 |
#image-upload-box:hover {
|
206 |
border-color: #58a6ff !important;
|
|
|
207 |
}
|
208 |
#image-upload-box .!h-full.w-full > div:first-of-type {
|
209 |
display: flex;
|
210 |
align-items: center;
|
211 |
justify-content: center;
|
|
|
212 |
}
|
213 |
#status-display {
|
214 |
text-align: center;
|
|
|
216 |
border-radius: 6px;
|
217 |
margin-top: 1rem;
|
218 |
min-height: 50px;
|
|
|
219 |
border: 1px solid #30363d;
|
220 |
transition: all 0.3s ease;
|
221 |
}
|
|
|
226 |
text-align: left;
|
227 |
}
|
228 |
#status-display li {
|
|
|
229 |
padding: 0.5rem;
|
230 |
margin-top: 0.5rem;
|
231 |
border-radius: 4px;
|
232 |
border: 1px solid #30363d;
|
233 |
}
|
234 |
.tool-accordion {
|
|
|
|
|
235 |
border-radius: 8px !important;
|
236 |
margin-top: 1.5rem;
|
237 |
}
|
238 |
+
|
|
|
|
|
|
|
|
|
|
|
239 |
"""
|
240 |
|
241 |
def _handle_login_attempt(self, image_input: Image.Image):
|