evijit HF Staff commited on
Commit
f9d96a7
·
verified ·
1 Parent(s): 6f76917

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -79,12 +79,12 @@ def create_treemap(treemap_data, count_by, title=None):
79
 
80
  # --- FINAL FIX: Use CSS to target and fix the specific visual issues ---
81
  custom_css = """
82
- /* Target the specific gr.Group containing the slider, remove its background, and set padding */
83
  .gradio-group:has(#param-slider-wrapper) {
84
  border: none !important;
85
  background: none !important;
86
  box-shadow: none !important;
87
- padding: 5px !important; /* MODIFIED: Set padding to 5px as requested */
88
  }
89
  /* Target the min/max number labels within the RangeSlider component and hide them */
90
  #param-slider-wrapper div[data-testid="range-slider"] > span {
@@ -94,6 +94,13 @@ custom_css = """
94
  #param-slider-wrapper .head {
95
  display: none !important;
96
  }
 
 
 
 
 
 
 
97
  """
98
 
99
  with gr.Blocks(title="🤗 ModelVerse Explorer", fill_width=True, css=custom_css) as demo:
 
79
 
80
  # --- FINAL FIX: Use CSS to target and fix the specific visual issues ---
81
  custom_css = """
82
+ /* Target the specific gr.Group containing the slider, remove its background, and add padding */
83
  .gradio-group:has(#param-slider-wrapper) {
84
  border: none !important;
85
  background: none !important;
86
  box-shadow: none !important;
87
+ padding: 12px !important;
88
  }
89
  /* Target the min/max number labels within the RangeSlider component and hide them */
90
  #param-slider-wrapper div[data-testid="range-slider"] > span {
 
94
  #param-slider-wrapper .head {
95
  display: none !important;
96
  }
97
+
98
+ /* --- NEW RULE AS COMMANDED --- */
99
+ /* Target component-11 specifically to set its background to none and padding to 5px */
100
+ #component-11 {
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: