Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -13,12 +13,20 @@ from tqdm import tqdm
|
|
13 |
# Constants
|
14 |
TITLE = "🌐 Phi-3 Instruct Graph Explorer"
|
15 |
SUBTITLE = "✨ Extract and visualize knowledge graphs from any text in multiple languages"
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
# Color utilities
|
24 |
def get_random_light_color():
|
@@ -199,7 +207,7 @@ EXAMPLES = [
|
|
199 |
]
|
200 |
|
201 |
def create_ui():
|
202 |
-
with gr.Blocks(
|
203 |
# Header
|
204 |
gr.Markdown(f"# {TITLE}")
|
205 |
gr.Markdown(f"{SUBTITLE}")
|
|
|
13 |
# Constants
|
14 |
TITLE = "🌐 Phi-3 Instruct Graph Explorer"
|
15 |
SUBTITLE = "✨ Extract and visualize knowledge graphs from any text in multiple languages"
|
16 |
+
|
17 |
+
# Custom CSS for styling
|
18 |
+
CUSTOM_CSS = """
|
19 |
+
.gradio-container {
|
20 |
+
font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
|
21 |
+
}
|
22 |
+
.gr-button-primary {
|
23 |
+
background-color: #6366f1 !important;
|
24 |
+
}
|
25 |
+
.gr-button-secondary {
|
26 |
+
border-color: #6366f1 !important;
|
27 |
+
color: #6366f1 !important;
|
28 |
+
}
|
29 |
+
"""
|
30 |
|
31 |
# Color utilities
|
32 |
def get_random_light_color():
|
|
|
207 |
]
|
208 |
|
209 |
def create_ui():
|
210 |
+
with gr.Blocks(css=CUSTOM_CSS, title=TITLE) as demo:
|
211 |
# Header
|
212 |
gr.Markdown(f"# {TITLE}")
|
213 |
gr.Markdown(f"{SUBTITLE}")
|