Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -101,6 +101,13 @@ custom_css = """
|
|
101 |
background: none !important;
|
102 |
padding: 5px !important;
|
103 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
"""
|
105 |
|
106 |
with gr.Blocks(title="🤗 ModelVerse Explorer", fill_width=True, css=custom_css) as demo:
|
@@ -132,7 +139,8 @@ with gr.Blocks(title="🤗 ModelVerse Explorer", fill_width=True, css=custom_css
|
|
132 |
show_label=False,
|
133 |
elem_id="param-slider-wrapper"
|
134 |
)
|
135 |
-
|
|
|
136 |
|
137 |
# This section remains un-grouped
|
138 |
top_k_dropdown = gr.Dropdown(label="Number of Top Organizations", choices=TOP_K_CHOICES, value=25)
|
@@ -225,4 +233,6 @@ with gr.Blocks(title="🤗 ModelVerse Explorer", fill_width=True, css=custom_css
|
|
225 |
|
226 |
if __name__ == "__main__":
|
227 |
print(f"Application starting...")
|
228 |
-
demo.queue().launch()
|
|
|
|
|
|
101 |
background: none !important;
|
102 |
padding: 5px !important;
|
103 |
}
|
104 |
+
|
105 |
+
/* Remove the grey box from the parameter range display text below the slider */
|
106 |
+
#param-range-display-md {
|
107 |
+
background: none !important;
|
108 |
+
border: none !important;
|
109 |
+
padding: 4px 0 0 0 !important; /* Small top padding for spacing, no other padding */
|
110 |
+
}
|
111 |
"""
|
112 |
|
113 |
with gr.Blocks(title="🤗 ModelVerse Explorer", fill_width=True, css=custom_css) as demo:
|
|
|
139 |
show_label=False,
|
140 |
elem_id="param-slider-wrapper"
|
141 |
)
|
142 |
+
# MODIFIED: Added elem_id for precise CSS targeting
|
143 |
+
param_range_display = gr.Markdown(f"Range: `{PARAM_CHOICES[0]}` to `{PARAM_CHOICES[-1]}`", elem_id="param-range-display-md")
|
144 |
|
145 |
# This section remains un-grouped
|
146 |
top_k_dropdown = gr.Dropdown(label="Number of Top Organizations", choices=TOP_K_CHOICES, value=25)
|
|
|
233 |
|
234 |
if __name__ == "__main__":
|
235 |
print(f"Application starting...")
|
236 |
+
demo.queue().launch()
|
237 |
+
|
238 |
+
# --- END OF FINAL, POLISHED FILE app.py ---
|