sidagarwal04 commited on
Commit
6e0350e
·
verified ·
1 Parent(s): 7b8ea9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -18
app.py CHANGED
@@ -119,29 +119,30 @@ def chat_response(input_text,history):
119
  # Define your custom CSS
120
  custom_css = """
121
  /* Custom CSS for the chat interface */
122
- .gradio-chat-box {
123
- background-color: #f0f0f0; /* Change background color */
124
  border-radius: 10px; /* Add border radius */
125
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Add shadow */
126
  }
127
 
128
- /* Custom CSS for the chat input */
129
- .gradio-chat-input input[type="text"] {
130
- background-color: #ffffff; /* Change input background color */
131
- border-radius: 5px; /* Add border radius */
132
- border: 1px solid #cccccc; /* Change border color */
133
- }
 
 
 
 
 
 
 
 
 
 
 
134
 
135
- /* Custom CSS for the chat button */
136
- .gradio-chat-input button {
137
- # background-color: #ff0000; /* Change button background color */
138
- # border-radius: 5px; /* Add border radius */
139
- # color: #ffffff; /* Change text color */
140
- background: linear-gradient(90deg, #9848FC 0%, #DC8855 100%);
141
- background-clip: text;
142
- -webkit-background-clip: text;
143
- -webkit-text-fill-color: transparent;
144
- }
145
  """
146
 
147
  interface = gr.ChatInterface(fn = chat_response,
 
119
  # Define your custom CSS
120
  custom_css = """
121
  /* Custom CSS for the chat interface */
122
+ .gradio-container {
123
+ background: #f0f0f0; /* Change background color */
124
  border-radius: 10px; /* Add border radius */
125
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Add shadow */
126
  }
127
 
128
+ # /* Custom CSS for the chat input */
129
+ # .gradio-chat-input input[type="text"] {
130
+ # background-color: #ffffff; /* Change input background color */
131
+ # border-radius: 5px; /* Add border radius */
132
+ # border: 1px solid #cccccc; /* Change border color */
133
+ # }
134
+
135
+ # /* Custom CSS for the chat button */
136
+ # .gradio-chat-input button {
137
+ # # background-color: #ff0000; /* Change button background color */
138
+ # # border-radius: 5px; /* Add border radius */
139
+ # # color: #ffffff; /* Change text color */
140
+ # background: linear-gradient(90deg, #9848FC 0%, #DC8855 100%);
141
+ # background-clip: text;
142
+ # -webkit-background-clip: text;
143
+ # -webkit-text-fill-color: transparent;
144
+ # }
145
 
 
 
 
 
 
 
 
 
 
 
146
  """
147
 
148
  interface = gr.ChatInterface(fn = chat_response,