JenetGhumman commited on
Commit
e87f9dd
·
verified ·
1 Parent(s): 6215013

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -4
app.py CHANGED
@@ -54,7 +54,7 @@ def get_chatbot_response(user_message, insurance_type, country, conversation_his
54
 
55
  return conversation_history, chat_display
56
 
57
- # ✅ Styling and Theme
58
  theme = gr.themes.Base().set(
59
  body_background_fill="linear-gradient(to right, #0052CC, #00AFFF)",
60
  button_primary_background_fill="#0052CC",
@@ -62,8 +62,9 @@ theme = gr.themes.Base().set(
62
  )
63
 
64
  custom_css = """
 
65
  .title-text {
66
- background: #0052CC;
67
  -webkit-background-clip: text;
68
  background-clip: text;
69
  color: transparent;
@@ -74,20 +75,39 @@ custom_css = """
74
  text-align: center;
75
  font-size: 45px;
76
  }
 
 
 
 
 
 
 
 
 
 
 
 
77
  .insurance-button {
78
- border: 1px solid #0052CC;
79
  background-color: transparent;
80
  font-size: 15px;
81
  padding: 5px 15px;
82
  border-radius: 16px;
83
  margin: 0 5px;
 
84
  }
85
  .insurance-button:hover {
86
- background: linear-gradient(90deg, #0052CC, #00AFFF);
87
  color: white;
88
  }
 
 
 
 
 
89
  """
90
 
 
91
  def clear_history():
92
  return []
93
 
 
54
 
55
  return conversation_history, chat_display
56
 
57
+ # ✅ Styling and Theme with Yellow Text in Blue Background
58
  theme = gr.themes.Base().set(
59
  body_background_fill="linear-gradient(to right, #0052CC, #00AFFF)",
60
  button_primary_background_fill="#0052CC",
 
62
  )
63
 
64
  custom_css = """
65
+ /* Title text with blue-to-yellow gradient */
66
  .title-text {
67
+ background: linear-gradient(90deg, #0052CC, #FFD700);
68
  -webkit-background-clip: text;
69
  background-clip: text;
70
  color: transparent;
 
75
  text-align: center;
76
  font-size: 45px;
77
  }
78
+
79
+ /* Make all regular text yellow if inside a blue background */
80
+ body, .gradio-container {
81
+ color: #FFD700 !important; /* Yellow text */
82
+ }
83
+
84
+ /* Keep chat messages white for readability */
85
+ .chat-message {
86
+ color: white !important;
87
+ }
88
+
89
+ /* Insurance buttons */
90
  .insurance-button {
91
+ border: 1px solid #FFD700;
92
  background-color: transparent;
93
  font-size: 15px;
94
  padding: 5px 15px;
95
  border-radius: 16px;
96
  margin: 0 5px;
97
+ color: #FFD700; /* Yellow text */
98
  }
99
  .insurance-button:hover {
100
+ background: linear-gradient(90deg, #FFD700, #00AFFF);
101
  color: white;
102
  }
103
+
104
+ /* Chatbot text background styling */
105
+ .gradio-container .block.markdown {
106
+ color: #FFD700 !important; /* Ensures markdown text is yellow */
107
+ }
108
  """
109
 
110
+
111
  def clear_history():
112
  return []
113