Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -103,17 +103,17 @@ body {
|
|
| 103 |
button {
|
| 104 |
background: linear-gradient(90deg, #6a11cb, #2575fc);
|
| 105 |
color: white;
|
| 106 |
-
padding: 0.
|
| 107 |
-
font-size:
|
| 108 |
font-weight: bold;
|
| 109 |
-
border-radius:
|
| 110 |
border: none;
|
| 111 |
cursor: pointer;
|
| 112 |
transition: transform 0.2s ease, background 0.2s ease;
|
| 113 |
}
|
| 114 |
button:hover {
|
| 115 |
background: linear-gradient(90deg, #2575fc, #6a11cb);
|
| 116 |
-
transform: scale(1.
|
| 117 |
}
|
| 118 |
header {
|
| 119 |
text-align: center;
|
|
@@ -126,18 +126,31 @@ header {
|
|
| 126 |
}
|
| 127 |
.chat-container {
|
| 128 |
border: 2px solid #ff7eb3;
|
| 129 |
-
background: rgba(255, 255, 255, 0.
|
| 130 |
border-radius: 15px;
|
| 131 |
-
padding:
|
| 132 |
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
| 133 |
-
max-height:
|
| 134 |
overflow-y: auto;
|
| 135 |
-
width: 80%; /*
|
| 136 |
margin: 0 auto; /* Center the container */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
}
|
| 138 |
""")
|
| 139 |
|
| 140 |
|
|
|
|
| 141 |
with chat_interface:
|
| 142 |
with gr.Row():
|
| 143 |
gr.Markdown("<h1 style='text-align:center;'>🌟 Vibrant Personal Assistant Chatbot 🌈</h1>")
|
|
|
|
| 103 |
button {
|
| 104 |
background: linear-gradient(90deg, #6a11cb, #2575fc);
|
| 105 |
color: white;
|
| 106 |
+
padding: 0.5rem 1rem; /* Smaller button padding */
|
| 107 |
+
font-size: 0.9rem; /* Smaller button text */
|
| 108 |
font-weight: bold;
|
| 109 |
+
border-radius: 15px; /* Slightly smaller border radius */
|
| 110 |
border: none;
|
| 111 |
cursor: pointer;
|
| 112 |
transition: transform 0.2s ease, background 0.2s ease;
|
| 113 |
}
|
| 114 |
button:hover {
|
| 115 |
background: linear-gradient(90deg, #2575fc, #6a11cb);
|
| 116 |
+
transform: scale(1.05); /* Smaller hover effect */
|
| 117 |
}
|
| 118 |
header {
|
| 119 |
text-align: center;
|
|
|
|
| 126 |
}
|
| 127 |
.chat-container {
|
| 128 |
border: 2px solid #ff7eb3;
|
| 129 |
+
background: rgba(255, 255, 255, 0.9); /* Slightly higher contrast for readability */
|
| 130 |
border-radius: 15px;
|
| 131 |
+
padding: 20px; /* Slightly larger padding for better spacing */
|
| 132 |
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
| 133 |
+
max-height: 400px; /* Increased height to show more history */
|
| 134 |
overflow-y: auto;
|
| 135 |
+
width: 80%; /* Wider container */
|
| 136 |
margin: 0 auto; /* Center the container */
|
| 137 |
+
font-size: 1rem; /* Larger font for readability */
|
| 138 |
+
line-height: 1.5; /* Improved line spacing for easier reading */
|
| 139 |
+
}
|
| 140 |
+
.chat-container p {
|
| 141 |
+
margin: 0 0 10px; /* Spacing between messages */
|
| 142 |
+
}
|
| 143 |
+
.chat-container .user-message {
|
| 144 |
+
color: #2575fc; /* Highlight user messages in blue */
|
| 145 |
+
font-weight: bold;
|
| 146 |
+
}
|
| 147 |
+
.chat-container .bot-response {
|
| 148 |
+
color: #6a11cb; /* Highlight bot responses in purple */
|
| 149 |
}
|
| 150 |
""")
|
| 151 |
|
| 152 |
|
| 153 |
+
|
| 154 |
with chat_interface:
|
| 155 |
with gr.Row():
|
| 156 |
gr.Markdown("<h1 style='text-align:center;'>🌟 Vibrant Personal Assistant Chatbot 🌈</h1>")
|