Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
|
@@ -249,6 +249,20 @@ css = HOVER_HINT_CSS + """
|
|
| 249 |
/* no chip */
|
| 250 |
.scroll-fade::before { content: none; }
|
| 251 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 252 |
"""
|
| 253 |
|
| 254 |
|
|
@@ -1207,14 +1221,14 @@ with gr.Blocks(css=css) as app:
|
|
| 1207 |
context_similarity_weight = gr.Slider(minimum=0, maximum=1, value=0.5, step=0.1, label="Context Similarity Weight")
|
| 1208 |
allow_nsfw = gr.Checkbox(label="Allow NSFW Tag Suggestions", value=False)
|
| 1209 |
with gr.Row():
|
| 1210 |
-
with gr.Column(scale=2):
|
| 1211 |
unseen_tags = gr.HTML(
|
| 1212 |
label="Unknown Tags",
|
| 1213 |
value=create_html_placeholder(title="Unknown Tags"),
|
| 1214 |
elem_id="unseen_html",
|
| 1215 |
elem_classes=["scroll-fade"],
|
| 1216 |
)
|
| 1217 |
-
with gr.Column(scale=1):
|
| 1218 |
suggested_tags = gr.HTML(
|
| 1219 |
label="Suggested Tags",
|
| 1220 |
value=create_html_placeholder(title="Suggested Tags"),
|
|
|
|
| 249 |
/* no chip */
|
| 250 |
.scroll-fade::before { content: none; }
|
| 251 |
|
| 252 |
+
/* --- Subtle divider between Unknown and Suggested panes --- */
|
| 253 |
+
.pane-right {
|
| 254 |
+
border-left: 1px solid var(--block-border-color, rgba(255,255,255,.16));
|
| 255 |
+
padding-left: 16px; /* keep content away from divider */
|
| 256 |
+
}
|
| 257 |
+
.pane-left {
|
| 258 |
+
padding-right: 16px; /* symmetrical spacing */
|
| 259 |
+
}
|
| 260 |
+
|
| 261 |
+
/* (Optional) make both scroll panes taller so they fill more of the column */
|
| 262 |
+
.pane-left .scrollable-content,
|
| 263 |
+
.pane-right .scrollable-content {
|
| 264 |
+
max-height: 610px; /* was 420px; tweak to taste */
|
| 265 |
+
}
|
| 266 |
"""
|
| 267 |
|
| 268 |
|
|
|
|
| 1221 |
context_similarity_weight = gr.Slider(minimum=0, maximum=1, value=0.5, step=0.1, label="Context Similarity Weight")
|
| 1222 |
allow_nsfw = gr.Checkbox(label="Allow NSFW Tag Suggestions", value=False)
|
| 1223 |
with gr.Row():
|
| 1224 |
+
with gr.Column(scale=2, elem_classes=["pane-left"]):
|
| 1225 |
unseen_tags = gr.HTML(
|
| 1226 |
label="Unknown Tags",
|
| 1227 |
value=create_html_placeholder(title="Unknown Tags"),
|
| 1228 |
elem_id="unseen_html",
|
| 1229 |
elem_classes=["scroll-fade"],
|
| 1230 |
)
|
| 1231 |
+
with gr.Column(scale=1, elem_classes=["pane-right"]):
|
| 1232 |
suggested_tags = gr.HTML(
|
| 1233 |
label="Suggested Tags",
|
| 1234 |
value=create_html_placeholder(title="Suggested Tags"),
|