Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2267,26 +2267,7 @@ def highlight_button(button_name):
|
|
| 2267 |
return gr.Button.update(variant="primary") # Highlight the clicked button
|
| 2268 |
|
| 2269 |
with gr.Blocks(css=css,js=js_func) as demo:
|
| 2270 |
-
with gr.Blocks() as demo:
|
| 2271 |
-
idx = 0
|
| 2272 |
-
while idx < len(plots_visible):
|
| 2273 |
-
comp = plots_visible[idx]
|
| 2274 |
|
| 2275 |
-
# Detect Trust + NPS combo
|
| 2276 |
-
if (
|
| 2277 |
-
isinstance(comp, gr.Image) and comp.label and "Trust Driver" in comp.label and
|
| 2278 |
-
idx + 1 < len(plots_visible) and isinstance(plots_visible[idx+1], gr.Image)
|
| 2279 |
-
and plots_visible[idx+1].label and "NPS Driver" in plots_visible[idx+1].label
|
| 2280 |
-
):
|
| 2281 |
-
with gr.Row():
|
| 2282 |
-
with gr.Column(scale=1):
|
| 2283 |
-
comp.render()
|
| 2284 |
-
with gr.Column(scale=1):
|
| 2285 |
-
plots_visible[idx+1].render()
|
| 2286 |
-
idx += 2
|
| 2287 |
-
else:
|
| 2288 |
-
comp.render()
|
| 2289 |
-
idx += 1
|
| 2290 |
|
| 2291 |
|
| 2292 |
with gr.Column():
|
|
|
|
| 2267 |
return gr.Button.update(variant="primary") # Highlight the clicked button
|
| 2268 |
|
| 2269 |
with gr.Blocks(css=css,js=js_func) as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2270 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2271 |
|
| 2272 |
|
| 2273 |
with gr.Column():
|