SHAMIL SHAHBAZ AWAN commited on
Commit
200ad0d
·
verified ·
1 Parent(s): 1e72350

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -2
app.py CHANGED
@@ -69,7 +69,7 @@ with gr.Blocks(theme="soft") as demo:
69
  ],
70
  )
71
 
72
- # Styling the background and adding animations
73
  demo.css = """
74
  @keyframes fadeIn {
75
  0% { opacity: 0; }
@@ -103,7 +103,25 @@ with gr.Blocks(theme="soft") as demo:
103
  color: white;
104
  border-radius: 5px;
105
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  """
107
 
108
  if __name__ == "__main__":
109
- demo.launch()
 
69
  ],
70
  )
71
 
72
+ # Styling the background, chat transparency, and text color
73
  demo.css = """
74
  @keyframes fadeIn {
75
  0% { opacity: 0; }
 
103
  color: white;
104
  border-radius: 5px;
105
  }
106
+
107
+ /* Make the chat messages transparent and set text to white */
108
+ .gr-chatbox {
109
+ background: rgba(0, 0, 0, 0.4); /* Transparent black background */
110
+ color: white !important; /* Set text color to white */
111
+ }
112
+
113
+ .gr-chatbox .gr-message {
114
+ color: white !important; /* Ensures messages are white */
115
+ }
116
+
117
+ .gr-chatbox .gr-message-user {
118
+ color: white !important; /* User messages are white */
119
+ }
120
+
121
+ .gr-chatbox .gr-message-assistant {
122
+ color: white !important; /* Assistant messages are white */
123
+ }
124
  """
125
 
126
  if __name__ == "__main__":
127
+ demo.launch()