ginipick commited on
Commit
f749fc6
·
verified ·
1 Parent(s): d96dda7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -7
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
- THEME = gr.themes.Base().set(
17
- primary_hue="indigo",
18
- secondary_hue="purple",
19
- neutral_hue="slate",
20
- radius_size=gr.themes.sizes.radius_sm
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(theme=THEME, title=TITLE) as demo:
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}")