Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -273,13 +273,18 @@ with gr.Blocks(theme=theme, css="""
|
|
| 273 |
.custom-textbox {
|
| 274 |
min-width: 250px;
|
| 275 |
}
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 283 |
}
|
| 284 |
|
| 285 |
@media (min-width: 769px) and (max-width: 1024px) {
|
|
@@ -324,13 +329,13 @@ with gr.Blocks(theme=theme, css="""
|
|
| 324 |
|
| 325 |
with gr.Row(elem_classes=["input-row"]):
|
| 326 |
msg = gr.Textbox(
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
send_btn = gr.Button("📤", variant="primary", elem_classes=["send-button"])
|
| 335 |
|
| 336 |
def respond_and_update(message, history):
|
|
|
|
| 273 |
.custom-textbox {
|
| 274 |
min-width: 250px;
|
| 275 |
}
|
| 276 |
+
.custom-textbox textarea {
|
| 277 |
+
border-radius: 12px !important;
|
| 278 |
+
border: 1pt solid #64748b !important; /* 1pt slate border */
|
| 279 |
+
padding: 15px 20px !important;
|
| 280 |
+
font-size: 16px !important;
|
| 281 |
+
background: white !important;
|
| 282 |
+
outline: none !important;
|
| 283 |
+
box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
|
| 284 |
+
transition: all 0.3s ease !important;
|
| 285 |
+
min-height: 100px !important;
|
| 286 |
+
resize: vertical !important;
|
| 287 |
+
}
|
| 288 |
}
|
| 289 |
|
| 290 |
@media (min-width: 769px) and (max-width: 1024px) {
|
|
|
|
| 329 |
|
| 330 |
with gr.Row(elem_classes=["input-row"]):
|
| 331 |
msg = gr.Textbox(
|
| 332 |
+
placeholder="Ask me about math, research, study strategies, or any educational topic...",
|
| 333 |
+
container=False,
|
| 334 |
+
show_label=False,
|
| 335 |
+
elem_classes=["custom-textbox"],
|
| 336 |
+
lines=4,
|
| 337 |
+
max_lines=8
|
| 338 |
+
)
|
| 339 |
send_btn = gr.Button("📤", variant="primary", elem_classes=["send-button"])
|
| 340 |
|
| 341 |
def respond_and_update(message, history):
|