Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,49 +47,59 @@ def call_kgx3(title, email, pdf_file, agreement):
|
|
| 47 |
|
| 48 |
# === STYLE (high-contrast futuristic) ===
|
| 49 |
FUTURE_CSS = """
|
| 50 |
-
*
|
| 51 |
-
body, .gradio-container {
|
| 52 |
-
|
| 53 |
-
color: #00ff99 !important;
|
| 54 |
-
|
| 55 |
}
|
| 56 |
-
|
| 57 |
-
::placeholder { color: #00ff99 !important; opacity: 0.7; }
|
| 58 |
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
|
|
|
| 62 |
}
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
background: #000 !important; border: 2px solid #00ff99 !important; border-radius: 6px !important;
|
| 72 |
-
padding: 10px !important; display: flex !important; align-items: center !important; justify-content: center !important;
|
| 73 |
-
transition: all 0.2s ease-in-out;
|
| 74 |
}
|
| 75 |
-
|
|
|
|
|
|
|
| 76 |
button {
|
| 77 |
-
background: #000 !important;
|
| 78 |
-
|
| 79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
}
|
| 81 |
-
button:hover { background: #00ff99 !important; color: #000 !important; }
|
|
|
|
|
|
|
| 82 |
pre, code, .cm-editor, .cm-content, .cm-line {
|
| 83 |
-
background: #000 !important;
|
| 84 |
-
|
|
|
|
|
|
|
| 85 |
}
|
| 86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
::-webkit-scrollbar { width: 8px; background: #000; }
|
| 88 |
::-webkit-scrollbar-thumb { background: #00ff99; border-radius: 4px; }
|
| 89 |
-
footer, .footer, small { color: #00ff99 !important; opacity: 0.8; text-align: center; letter-spacing: 0.4px; }
|
| 90 |
"""
|
| 91 |
|
| 92 |
-
|
| 93 |
# === BUILD APP ===
|
| 94 |
with gr.Blocks(css=FUTURE_CSS, title="Shared KGX3 API Endpoint") as demo:
|
| 95 |
gr.Markdown("""
|
|
|
|
| 47 |
|
| 48 |
# === STYLE (high-contrast futuristic) ===
|
| 49 |
FUTURE_CSS = """
|
| 50 |
+
/* === GLOBAL RESET === */
|
| 51 |
+
html, body, .gradio-container {
|
| 52 |
+
background-color: #000 !important;
|
| 53 |
+
color: #00ff99 !important;
|
| 54 |
+
font-family: 'Courier New', monospace !important;
|
| 55 |
}
|
| 56 |
+
* { color: #00ff99 !important; box-sizing: border-box; }
|
|
|
|
| 57 |
|
| 58 |
+
/* === BOXES, PANELS, COLUMNS === */
|
| 59 |
+
div, section, .gr-block, .gr-panel, .gr-box, .gr-column, .gr-row {
|
| 60 |
+
background-color: #000 !important;
|
| 61 |
+
border-color: #00ff99 !important;
|
| 62 |
}
|
| 63 |
+
|
| 64 |
+
/* === INPUTS, TEXTAREA, FILE UPLOAD === */
|
| 65 |
+
input, textarea, select, .upload-box, .file-preview, .wrap-inner, .file-preview-container {
|
| 66 |
+
background-color: #000 !important;
|
| 67 |
+
color: #00ff99 !important;
|
| 68 |
+
border: 1px solid #00ff99 !important;
|
| 69 |
+
border-radius: 4px !important;
|
| 70 |
+
padding: 6px 8px !important;
|
|
|
|
|
|
|
|
|
|
| 71 |
}
|
| 72 |
+
::placeholder { color: #00ff99 !important; opacity: 0.6; }
|
| 73 |
+
|
| 74 |
+
/* === BUTTONS === */
|
| 75 |
button {
|
| 76 |
+
background-color: #000 !important;
|
| 77 |
+
color: #00ff99 !important;
|
| 78 |
+
border: 2px solid #00ff99 !important;
|
| 79 |
+
border-radius: 4px;
|
| 80 |
+
text-transform: uppercase;
|
| 81 |
+
font-weight: 700;
|
| 82 |
+
letter-spacing: 0.5px;
|
| 83 |
+
padding: 8px 16px !important;
|
| 84 |
}
|
| 85 |
+
button:hover { background-color: #00ff99 !important; color: #000 !important; }
|
| 86 |
+
|
| 87 |
+
/* === CODE OUTPUT === */
|
| 88 |
pre, code, .cm-editor, .cm-content, .cm-line {
|
| 89 |
+
background-color: #000 !important;
|
| 90 |
+
color: #00ff99 !important;
|
| 91 |
+
border: 1px solid #00ff99 !important;
|
| 92 |
+
border-radius: 4px;
|
| 93 |
}
|
| 94 |
+
|
| 95 |
+
/* === CHECKBOX === */
|
| 96 |
+
input[type=checkbox] { accent-color: #00ff99 !important; transform: scale(1.1); }
|
| 97 |
+
|
| 98 |
+
/* === SCROLLBARS === */
|
| 99 |
::-webkit-scrollbar { width: 8px; background: #000; }
|
| 100 |
::-webkit-scrollbar-thumb { background: #00ff99; border-radius: 4px; }
|
|
|
|
| 101 |
"""
|
| 102 |
|
|
|
|
| 103 |
# === BUILD APP ===
|
| 104 |
with gr.Blocks(css=FUTURE_CSS, title="Shared KGX3 API Endpoint") as demo:
|
| 105 |
gr.Markdown("""
|