black page
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ import spaces
|
|
52 |
|
53 |
# breakpoint()
|
54 |
MARKDOWN = """
|
55 |
-
|
56 |
<h1 style="font-size: 3em; margin: 0; color: white;">
|
57 |
<span style="color: white;">ሀ</span><span style="color: #32CD32;">A</span><span style="color: white;">ኪ</span><span style="color: #FFD700;">i</span><span style="color: white;">ም</span>
|
58 |
<sup style="font-size: 0.5em; color: white;">AI</sup>
|
@@ -229,48 +229,6 @@ CUSTOM_CSS = """
|
|
229 |
.gradio-container textarea::placeholder {
|
230 |
color: #888888 !important;
|
231 |
}
|
232 |
-
/* Previous CSS remains the same */
|
233 |
-
|
234 |
-
/* Accordion specific styles */
|
235 |
-
.gradio-container .gr-accordion {
|
236 |
-
background-color: #1a1a1a !important;
|
237 |
-
border: 1px solid #333 !important;
|
238 |
-
}
|
239 |
-
|
240 |
-
.gradio-container .gr-accordion-text {
|
241 |
-
color: #ffffff !important;
|
242 |
-
}
|
243 |
-
|
244 |
-
/* Target accordion header */
|
245 |
-
.gradio-container .gr-accordion > div[role="button"] {
|
246 |
-
background-color: #1a1a1a !important;
|
247 |
-
color: #ffffff !important;
|
248 |
-
}
|
249 |
-
|
250 |
-
/* Target accordion content */
|
251 |
-
.gradio-container .gr-accordion-content {
|
252 |
-
background-color: #1a1a1a !important;
|
253 |
-
color: #ffffff !important;
|
254 |
-
}
|
255 |
-
|
256 |
-
/* Make sure markdown text inside accordion is white */
|
257 |
-
.gradio-container .gr-accordion-content p,
|
258 |
-
.gradio-container .gr-accordion-content span,
|
259 |
-
.gradio-container .gr-accordion-content strong {
|
260 |
-
color: #ffffff !important;
|
261 |
-
}
|
262 |
-
|
263 |
-
/* Additional styles for any remaining light backgrounds */
|
264 |
-
.gradio-container div[class*="message"],
|
265 |
-
.gradio-container div[class*="panel"] {
|
266 |
-
background-color: #1a1a1a !important;
|
267 |
-
color: #ffffff !important;
|
268 |
-
}
|
269 |
-
|
270 |
-
/* Ensure all text elements are white */
|
271 |
-
.gradio-container * {
|
272 |
-
color: #ffffff !important;
|
273 |
-
}
|
274 |
"""
|
275 |
|
276 |
def on_mode_dropdown_change(selected_mode):
|
@@ -367,7 +325,7 @@ def process_image(image_path, text_prompts, modality):
|
|
367 |
return None, error_msg
|
368 |
|
369 |
# Define Gradio interface
|
370 |
-
with gr.Blocks(
|
371 |
gr.HTML(MARKDOWN)
|
372 |
with gr.Row():
|
373 |
with gr.Column():
|
|
|
52 |
|
53 |
# breakpoint()
|
54 |
MARKDOWN = """
|
55 |
+
div align="center" style="padding: 20px 0; background-color: black; color: white;">
|
56 |
<h1 style="font-size: 3em; margin: 0; color: white;">
|
57 |
<span style="color: white;">ሀ</span><span style="color: #32CD32;">A</span><span style="color: white;">ኪ</span><span style="color: #FFD700;">i</span><span style="color: white;">ም</span>
|
58 |
<sup style="font-size: 0.5em; color: white;">AI</sup>
|
|
|
229 |
.gradio-container textarea::placeholder {
|
230 |
color: #888888 !important;
|
231 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
"""
|
233 |
|
234 |
def on_mode_dropdown_change(selected_mode):
|
|
|
325 |
return None, error_msg
|
326 |
|
327 |
# Define Gradio interface
|
328 |
+
with gr.Blocks() as demo:
|
329 |
gr.HTML(MARKDOWN)
|
330 |
with gr.Row():
|
331 |
with gr.Column():
|