Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
# --- START OF FINAL,
|
| 2 |
|
| 3 |
import gradio as gr
|
| 4 |
import pandas as pd
|
|
@@ -77,9 +77,10 @@ def create_treemap(treemap_data, count_by, title=None):
|
|
| 77 |
fig.update_traces(textinfo="label+value+percent root", hovertemplate="<b>%{label}</b><br>%{value:,} " + count_by + "<br>%{percentRoot:.2%} of total<extra></extra>")
|
| 78 |
return fig
|
| 79 |
|
| 80 |
-
# --- FIX
|
| 81 |
custom_css = """
|
| 82 |
-
|
|
|
|
| 83 |
display: none !important;
|
| 84 |
}
|
| 85 |
"""
|
|
@@ -105,7 +106,6 @@ with gr.Blocks(title="🤗 ModelVerse Explorer", fill_width=True, css=custom_css
|
|
| 105 |
value=PARAM_CHOICES_DEFAULT_INDICES,
|
| 106 |
step=1,
|
| 107 |
label="Parameters",
|
| 108 |
-
# --- FIX 1: Remove the grey container ---
|
| 109 |
container=False,
|
| 110 |
elem_id="param-slider-wrapper"
|
| 111 |
)
|
|
|
|
| 1 |
+
# --- START OF FINAL, CORRECTED FILE app.py ---
|
| 2 |
|
| 3 |
import gradio as gr
|
| 4 |
import pandas as pd
|
|
|
|
| 77 |
fig.update_traces(textinfo="label+value+percent root", hovertemplate="<b>%{label}</b><br>%{value:,} " + count_by + "<br>%{percentRoot:.2%} of total<extra></extra>")
|
| 78 |
return fig
|
| 79 |
|
| 80 |
+
# --- FINAL FIX: This CSS now correctly targets the container you identified ---
|
| 81 |
custom_css = """
|
| 82 |
+
/* Target the element with the ID we assigned */
|
| 83 |
+
#param-slider-wrapper .tab-like-container {
|
| 84 |
display: none !important;
|
| 85 |
}
|
| 86 |
"""
|
|
|
|
| 106 |
value=PARAM_CHOICES_DEFAULT_INDICES,
|
| 107 |
step=1,
|
| 108 |
label="Parameters",
|
|
|
|
| 109 |
container=False,
|
| 110 |
elem_id="param-slider-wrapper"
|
| 111 |
)
|