Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -101,8 +101,8 @@ body {
|
|
101 |
button {
|
102 |
background: linear-gradient(90deg, #6a11cb, #2575fc);
|
103 |
color: white;
|
104 |
-
padding: 0.
|
105 |
-
font-size:
|
106 |
font-weight: bold;
|
107 |
border-radius: 20px;
|
108 |
border: none;
|
@@ -112,7 +112,7 @@ button {
|
|
112 |
|
113 |
button:hover {
|
114 |
background: linear-gradient(90deg, #2575fc, #6a11cb);
|
115 |
-
transform: scale(1.
|
116 |
}
|
117 |
|
118 |
header {
|
@@ -129,22 +129,27 @@ header {
|
|
129 |
border: 2px solid #ff7eb3;
|
130 |
background: rgba(255, 255, 255, 0.8);
|
131 |
border-radius: 15px;
|
132 |
-
padding:
|
133 |
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
134 |
-
max-height:
|
|
|
|
|
135 |
overflow-y: auto;
|
136 |
font-size: 1.1rem;
|
137 |
color: #333;
|
|
|
138 |
}
|
139 |
|
140 |
.chat-container .user-message {
|
141 |
font-weight: bold;
|
142 |
color: #6a11cb;
|
|
|
143 |
}
|
144 |
|
145 |
.chat-container .bot-message {
|
146 |
font-weight: normal;
|
147 |
color: #2575fc;
|
|
|
148 |
}
|
149 |
|
150 |
""") as chat_interface:
|
@@ -179,7 +184,7 @@ header {
|
|
179 |
send_button = gr.Button("Send")
|
180 |
|
181 |
with gr.Row():
|
182 |
-
chatbot_output = gr.Chatbot(label="Chat History")
|
183 |
|
184 |
def handle_chat(user_input, sub_category, history):
|
185 |
if not user_input.strip():
|
|
|
101 |
button {
|
102 |
background: linear-gradient(90deg, #6a11cb, #2575fc);
|
103 |
color: white;
|
104 |
+
padding: 0.6rem 1.2rem;
|
105 |
+
font-size: 0.9rem;
|
106 |
font-weight: bold;
|
107 |
border-radius: 20px;
|
108 |
border: none;
|
|
|
112 |
|
113 |
button:hover {
|
114 |
background: linear-gradient(90deg, #2575fc, #6a11cb);
|
115 |
+
transform: scale(1.05);
|
116 |
}
|
117 |
|
118 |
header {
|
|
|
129 |
border: 2px solid #ff7eb3;
|
130 |
background: rgba(255, 255, 255, 0.8);
|
131 |
border-radius: 15px;
|
132 |
+
padding: 20px;
|
133 |
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
134 |
+
max-height: 350px;
|
135 |
+
width: 80%; /* Wider chat container */
|
136 |
+
margin: 0 auto;
|
137 |
overflow-y: auto;
|
138 |
font-size: 1.1rem;
|
139 |
color: #333;
|
140 |
+
line-height: 1.6;
|
141 |
}
|
142 |
|
143 |
.chat-container .user-message {
|
144 |
font-weight: bold;
|
145 |
color: #6a11cb;
|
146 |
+
margin-bottom: 10px;
|
147 |
}
|
148 |
|
149 |
.chat-container .bot-message {
|
150 |
font-weight: normal;
|
151 |
color: #2575fc;
|
152 |
+
margin-bottom: 10px;
|
153 |
}
|
154 |
|
155 |
""") as chat_interface:
|
|
|
184 |
send_button = gr.Button("Send")
|
185 |
|
186 |
with gr.Row():
|
187 |
+
chatbot_output = gr.Chatbot(label="Chat History", elem_classes=["chat-container"])
|
188 |
|
189 |
def handle_chat(user_input, sub_category, history):
|
190 |
if not user_input.strip():
|