Update to more generic keywords for colors

#9
by STSDerek - opened
Files changed (1) hide show
  1. app.py +9 -11
app.py CHANGED
@@ -8,15 +8,16 @@ model = SentenceTransformer('all-MiniLM-L6-v2')
8
  sts_theme = gr.themes.Default(
9
  primary_hue="blue",
10
  secondary_hue="orange",
11
- neutral_hue="gray",
12
- font=["Arial", "sans-serif"]
13
  ).set(
14
- button_primary_background_fill="#FF6B00", # Orange accent
15
- button_primary_text_color="#FFFFFF", # White text
16
- button_primary_background_fill_hover="#E05D00", # Darker orange
17
- chatbot_background_color="#E9ECEF", # Light gray
18
- border_color_primary="#0056B3", # Dark blue
19
- color_background_primary="#0056B3" # Header blue
 
 
20
  )
21
 
22
  # SofTouch Systems FAQs
@@ -98,9 +99,6 @@ def chatbot(message, history):
98
 
99
  #iface = gr.ChatInterface(fn=chatbot, type="messages")
100
 
101
- # Wrap the ChatInterface in Blocks for CSS styling -- CSS not working, see hardcoded theme above.
102
- # with gr.Blocks(css="style.css") as iface:
103
-
104
  iface = gr.ChatInterface(
105
  fn=chatbot,
106
  title="VELMA - Virtual Engagement Liaison & Messaging Assistant",
 
8
  sts_theme = gr.themes.Default(
9
  primary_hue="blue",
10
  secondary_hue="orange",
11
+ neutral_hue="gray"
 
12
  ).set(
13
+ # VALID parameters (no chatbot-specific overrides)
14
+ button_primary_background="#FF6B00", # Orange
15
+ button_primary_text="#FFFFFF", # White text
16
+ button_primary_background_hover="#E05D00", # Darker orange
17
+ body_background_fill="#E9ECEF", # Light gray (main bg)
18
+ body_background_fill_dark="#E9ECEF", # Force light mode
19
+ block_background_fill="#FFFFFF", # Message bubbles
20
+ border_color_primary="#0056B3" # Dark blue borders
21
  )
22
 
23
  # SofTouch Systems FAQs
 
99
 
100
  #iface = gr.ChatInterface(fn=chatbot, type="messages")
101
 
 
 
 
102
  iface = gr.ChatInterface(
103
  fn=chatbot,
104
  title="VELMA - Virtual Engagement Liaison & Messaging Assistant",