Update app.py
Browse files
app.py
CHANGED
|
@@ -301,6 +301,31 @@ custom_css = """
|
|
| 301 |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
|
| 302 |
}
|
| 303 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 304 |
.interests-summary {
|
| 305 |
background: rgba(30, 41, 59, 0.5);
|
| 306 |
padding: 20px;
|
|
@@ -460,13 +485,15 @@ with gr.Blocks(title="Question Recommender", theme=gr.themes.Soft(), css=custom_
|
|
| 460 |
user1_dropdown = gr.Dropdown(
|
| 461 |
choices=users,
|
| 462 |
label="👤 First User",
|
| 463 |
-
interactive=True
|
|
|
|
| 464 |
)
|
| 465 |
with gr.Column(scale=1):
|
| 466 |
user2_dropdown = gr.Dropdown(
|
| 467 |
choices=users,
|
| 468 |
label="👤 Second User",
|
| 469 |
-
interactive=True
|
|
|
|
| 470 |
)
|
| 471 |
|
| 472 |
recommend_btn = gr.Button(
|
|
|
|
| 301 |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
|
| 302 |
}
|
| 303 |
|
| 304 |
+
/* Dropdown styling */
|
| 305 |
+
.gradio-dropdown > ul {
|
| 306 |
+
max-height: 300px !important;
|
| 307 |
+
overflow-y: auto !important;
|
| 308 |
+
scrollbar-width: thin !important;
|
| 309 |
+
}
|
| 310 |
+
|
| 311 |
+
.gradio-dropdown > ul::-webkit-scrollbar {
|
| 312 |
+
width: 6px !important;
|
| 313 |
+
}
|
| 314 |
+
|
| 315 |
+
.gradio-dropdown > ul::-webkit-scrollbar-track {
|
| 316 |
+
background: rgba(51, 65, 85, 0.1) !important;
|
| 317 |
+
border-radius: 3px !important;
|
| 318 |
+
}
|
| 319 |
+
|
| 320 |
+
.gradio-dropdown > ul::-webkit-scrollbar-thumb {
|
| 321 |
+
background: rgba(96, 165, 250, 0.5) !important;
|
| 322 |
+
border-radius: 3px !important;
|
| 323 |
+
}
|
| 324 |
+
|
| 325 |
+
.gradio-dropdown > ul::-webkit-scrollbar-thumb:hover {
|
| 326 |
+
background: rgba(96, 165, 250, 0.7) !important;
|
| 327 |
+
}
|
| 328 |
+
|
| 329 |
.interests-summary {
|
| 330 |
background: rgba(30, 41, 59, 0.5);
|
| 331 |
padding: 20px;
|
|
|
|
| 485 |
user1_dropdown = gr.Dropdown(
|
| 486 |
choices=users,
|
| 487 |
label="👤 First User",
|
| 488 |
+
interactive=True,
|
| 489 |
+
max_choices=None
|
| 490 |
)
|
| 491 |
with gr.Column(scale=1):
|
| 492 |
user2_dropdown = gr.Dropdown(
|
| 493 |
choices=users,
|
| 494 |
label="👤 Second User",
|
| 495 |
+
interactive=True,
|
| 496 |
+
max_choices=None
|
| 497 |
)
|
| 498 |
|
| 499 |
recommend_btn = gr.Button(
|