Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,7 +99,7 @@ body {
|
|
| 99 |
}
|
| 100 |
|
| 101 |
button {
|
| 102 |
-
background: linear-gradient(90deg, #
|
| 103 |
color: white;
|
| 104 |
padding: 0.6rem 1.2rem;
|
| 105 |
font-size: 0.9rem;
|
|
@@ -111,7 +111,7 @@ button {
|
|
| 111 |
}
|
| 112 |
|
| 113 |
button:hover {
|
| 114 |
-
background: linear-gradient(90deg, #
|
| 115 |
transform: scale(1.05);
|
| 116 |
}
|
| 117 |
|
|
@@ -191,12 +191,11 @@ header {
|
|
| 191 |
return history, history
|
| 192 |
updated_history, _ = chatbot(user_input, sub_category, history)
|
| 193 |
return updated_history, updated_history
|
| 194 |
-
|
| 195 |
|
| 196 |
send_button.click(
|
| 197 |
handle_chat,
|
| 198 |
-
inputs=[user_input,
|
| 199 |
outputs=[chatbot_output, chatbot_output]
|
| 200 |
)
|
| 201 |
-
|
| 202 |
chat_interface.launch()
|
|
|
|
| 99 |
}
|
| 100 |
|
| 101 |
button {
|
| 102 |
+
background: linear-gradient(90deg, #ff7eb3, #ff758c); /* Bright gradient */
|
| 103 |
color: white;
|
| 104 |
padding: 0.6rem 1.2rem;
|
| 105 |
font-size: 0.9rem;
|
|
|
|
| 111 |
}
|
| 112 |
|
| 113 |
button:hover {
|
| 114 |
+
background: linear-gradient(90deg, #ff758c, #ff7eb3); /* Reverse gradient for hover effect */
|
| 115 |
transform: scale(1.05);
|
| 116 |
}
|
| 117 |
|
|
|
|
| 191 |
return history, history
|
| 192 |
updated_history, _ = chatbot(user_input, sub_category, history)
|
| 193 |
return updated_history, updated_history
|
|
|
|
| 194 |
|
| 195 |
send_button.click(
|
| 196 |
handle_chat,
|
| 197 |
+
inputs=[user_input, category_dropdown, chatbot_output],
|
| 198 |
outputs=[chatbot_output, chatbot_output]
|
| 199 |
)
|
| 200 |
+
|
| 201 |
chat_interface.launch()
|