GuglielmoTor commited on
Commit
2ed00de
·
verified ·
1 Parent(s): 2f00f6e

Update ui/ui_generators.py

Browse files
Files changed (1) hide show
  1. ui/ui_generators.py +9 -3
ui/ui_generators.py CHANGED
@@ -627,26 +627,32 @@ def create_analytics_plot_panel(plot_label, plot_id):
627
  with gr.Column(visible=True, scale=1) as panel_col:
628
  with gr.Row():
629
  gr.Markdown(f"**{plot_label}**", elem_classes="plot-title")
 
 
630
  bomb_btn = gr.Button(
631
  value=BOMB_ICON,
632
  size="sm",
633
  scale=0,
634
  min_width=40,
635
- label="Analizza il grafico con l'intelligenza artificiale per scoprire spunti di riflessione. Nota: la generazione può richiedere fino a un minuto."
636
  )
 
 
637
  formula_btn = gr.Button(
638
  value=FORMULA_ICON,
639
  size="sm",
640
  scale=0,
641
  min_width=40,
642
- label="Scopri come viene calcolato il dato che stai visualizzando."
643
  )
 
 
644
  explore_btn = gr.Button(
645
  value=EXPLORE_ICON,
646
  size="sm",
647
  scale=0,
648
  min_width=40,
649
- label="Ingrandisci il grafico per un'analisi più dettagliata."
650
  )
651
 
652
  # ✅ FIXED: Use gr.LinePlot for the interactive chart, and gr.Plot for others.
 
627
  with gr.Column(visible=True, scale=1) as panel_col:
628
  with gr.Row():
629
  gr.Markdown(f"**{plot_label}**", elem_classes="plot-title")
630
+
631
+ # --- FIX: Replaced 'tooltip' with 'elem_classes' ---
632
  bomb_btn = gr.Button(
633
  value=BOMB_ICON,
634
  size="sm",
635
  scale=0,
636
  min_width=40,
637
+ elem_classes="analytics-bomb-btn" # Use class instead of id
638
  )
639
+
640
+ # --- FIX: Replaced 'tooltip' with 'elem_classes' ---
641
  formula_btn = gr.Button(
642
  value=FORMULA_ICON,
643
  size="sm",
644
  scale=0,
645
  min_width=40,
646
+ elem_classes="analytics-formula-btn" # Use class instead of id
647
  )
648
+
649
+ # --- FIX: Replaced 'tooltip' with 'elem_classes' ---
650
  explore_btn = gr.Button(
651
  value=EXPLORE_ICON,
652
  size="sm",
653
  scale=0,
654
  min_width=40,
655
+ elem_classes="analytics-explore-btn" # Use class instead of id
656
  )
657
 
658
  # ✅ FIXED: Use gr.LinePlot for the interactive chart, and gr.Plot for others.