Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,14 +2,40 @@ import gradio as gr
|
|
| 2 |
from PIL import Image
|
| 3 |
import os
|
| 4 |
|
|
|
|
| 5 |
CUSTOM_CSS = """
|
| 6 |
.gradio-container{
|
| 7 |
background: white !important;
|
| 8 |
font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto !important;
|
| 9 |
}
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
"""
|
| 14 |
|
| 15 |
IMG_PATH = "assets/file cabinet.png" # <- change ONLY if your filename differs
|
|
@@ -24,10 +50,6 @@ def load_hero():
|
|
| 24 |
return Image.open(IMG_PATH)
|
| 25 |
|
| 26 |
with gr.Blocks(css=CUSTOM_CSS) as demo:
|
| 27 |
-
.gradio-container > div:first-child {
|
| 28 |
-
border-bottom: 1px solid #e5e7eb;
|
| 29 |
-
padding-bottom: 20px;
|
| 30 |
-
margin-bottom: 40px;
|
| 31 |
}
|
| 32 |
# ---------- NAVBAR ----------
|
| 33 |
with gr.Row():
|
|
|
|
| 2 |
from PIL import Image
|
| 3 |
import os
|
| 4 |
|
| 5 |
+
CUSTOM_CSS = """
|
| 6 |
CUSTOM_CSS = """
|
| 7 |
.gradio-container{
|
| 8 |
background: white !important;
|
| 9 |
font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto !important;
|
| 10 |
}
|
| 11 |
+
|
| 12 |
+
/* Headings */
|
| 13 |
+
h1{
|
| 14 |
+
font-size:52px !important;
|
| 15 |
+
font-weight:800 !important;
|
| 16 |
+
line-height:1.05 !important;
|
| 17 |
+
letter-spacing:-1px;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
h3{
|
| 21 |
+
color:#6b7280 !important;
|
| 22 |
+
font-weight:400 !important;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
/* Buttons */
|
| 26 |
+
button{
|
| 27 |
+
border-radius: 12px !important;
|
| 28 |
+
padding: 12px 24px !important;
|
| 29 |
+
font-weight: 600 !important;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
/* Navbar bottom border */
|
| 33 |
+
.gradio-container > div:first-child {
|
| 34 |
+
border-bottom: 1px solid #e5e7eb;
|
| 35 |
+
padding-bottom: 20px;
|
| 36 |
+
margin-bottom: 40px;
|
| 37 |
+
}
|
| 38 |
+
"""
|
| 39 |
"""
|
| 40 |
|
| 41 |
IMG_PATH = "assets/file cabinet.png" # <- change ONLY if your filename differs
|
|
|
|
| 50 |
return Image.open(IMG_PATH)
|
| 51 |
|
| 52 |
with gr.Blocks(css=CUSTOM_CSS) as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
}
|
| 54 |
# ---------- NAVBAR ----------
|
| 55 |
with gr.Row():
|