styles
Browse files
app.py
CHANGED
|
@@ -56,18 +56,18 @@ def create_ui():
|
|
| 56 |
placeholder="e.g. https://huggingface.co/api/datasets/facebook/natural_reasoning/croissant"
|
| 57 |
)
|
| 58 |
fetch_btn = gr.Button("Fetch and Validate", variant="primary")
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
with gr.Group():
|
| 62 |
-
# Progress/status message
|
| 63 |
upload_progress = gr.HTML(
|
| 64 |
"""<div class="progress-status">Ready for validation</div>""",
|
| 65 |
visible=True)
|
| 66 |
-
|
|
|
|
|
|
|
| 67 |
# Validation results
|
| 68 |
validation_results = gr.HTML(visible=False)
|
| 69 |
|
| 70 |
-
# Define CSS for the validation UI
|
| 71 |
gr.HTML("""
|
| 72 |
<style>
|
| 73 |
/* Set max width and center the app */
|
|
@@ -97,7 +97,7 @@ def create_ui():
|
|
| 97 |
align-items: center;
|
| 98 |
justify-content: space-between;
|
| 99 |
cursor: pointer;
|
| 100 |
-
background-color: rgba(0, 0, 0, 0.03) !important;
|
| 101 |
}
|
| 102 |
|
| 103 |
.step-left {
|
|
@@ -106,6 +106,7 @@ def create_ui():
|
|
| 106 |
gap: 10px;
|
| 107 |
}
|
| 108 |
|
|
|
|
| 109 |
.step-status {
|
| 110 |
width: 24px;
|
| 111 |
height: 24px;
|
|
@@ -114,7 +115,7 @@ def create_ui():
|
|
| 114 |
align-items: center;
|
| 115 |
justify-content: center;
|
| 116 |
font-weight: bold;
|
| 117 |
-
color: white;
|
| 118 |
}
|
| 119 |
|
| 120 |
.status-success {
|
|
@@ -127,19 +128,20 @@ def create_ui():
|
|
| 127 |
|
| 128 |
.step-details {
|
| 129 |
padding: 12px 15px;
|
| 130 |
-
border-top: 1px solid var(--border-color-primary, rgba(128, 128, 128, 0.1));
|
| 131 |
background-color: var(--body-background-fill) !important;
|
| 132 |
}
|
| 133 |
|
| 134 |
-
/* User hints styling - italic, smaller,
|
| 135 |
.progress-status {
|
| 136 |
font-style: italic;
|
| 137 |
font-size: 0.9em;
|
| 138 |
color: var(--body-text-color-subdued);
|
| 139 |
padding: 8px 0;
|
|
|
|
| 140 |
width: 100%;
|
| 141 |
background: none !important;
|
| 142 |
border: none !important;
|
|
|
|
| 143 |
}
|
| 144 |
|
| 145 |
/* Override input containers to match page background */
|
|
|
|
| 56 |
placeholder="e.g. https://huggingface.co/api/datasets/facebook/natural_reasoning/croissant"
|
| 57 |
)
|
| 58 |
fetch_btn = gr.Button("Fetch and Validate", variant="primary")
|
| 59 |
+
|
| 60 |
+
# Progress/status message - moved up inside the input group
|
|
|
|
|
|
|
| 61 |
upload_progress = gr.HTML(
|
| 62 |
"""<div class="progress-status">Ready for validation</div>""",
|
| 63 |
visible=True)
|
| 64 |
+
|
| 65 |
+
# Now create the validation results section in a separate group
|
| 66 |
+
with gr.Group():
|
| 67 |
# Validation results
|
| 68 |
validation_results = gr.HTML(visible=False)
|
| 69 |
|
| 70 |
+
# Define CSS for the validation UI
|
| 71 |
gr.HTML("""
|
| 72 |
<style>
|
| 73 |
/* Set max width and center the app */
|
|
|
|
| 97 |
align-items: center;
|
| 98 |
justify-content: space-between;
|
| 99 |
cursor: pointer;
|
| 100 |
+
background-color: rgba(0, 0, 0, 0.03) !important;
|
| 101 |
}
|
| 102 |
|
| 103 |
.step-left {
|
|
|
|
| 106 |
gap: 10px;
|
| 107 |
}
|
| 108 |
|
| 109 |
+
/* Force text color to white in status indicators */
|
| 110 |
.step-status {
|
| 111 |
width: 24px;
|
| 112 |
height: 24px;
|
|
|
|
| 115 |
align-items: center;
|
| 116 |
justify-content: center;
|
| 117 |
font-weight: bold;
|
| 118 |
+
color: white !important;
|
| 119 |
}
|
| 120 |
|
| 121 |
.status-success {
|
|
|
|
| 128 |
|
| 129 |
.step-details {
|
| 130 |
padding: 12px 15px;
|
|
|
|
| 131 |
background-color: var(--body-background-fill) !important;
|
| 132 |
}
|
| 133 |
|
| 134 |
+
/* User hints styling - italic, smaller, better positioned */
|
| 135 |
.progress-status {
|
| 136 |
font-style: italic;
|
| 137 |
font-size: 0.9em;
|
| 138 |
color: var(--body-text-color-subdued);
|
| 139 |
padding: 8px 0;
|
| 140 |
+
margin-top: 5px;
|
| 141 |
width: 100%;
|
| 142 |
background: none !important;
|
| 143 |
border: none !important;
|
| 144 |
+
text-align: center;
|
| 145 |
}
|
| 146 |
|
| 147 |
/* Override input containers to match page background */
|