GDMProjects commited on
Commit
30a5f7a
·
verified ·
1 Parent(s): 3fc7211

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -255,7 +255,9 @@ def _plot_global_shap():
255
  return fig
256
 
257
  GLOBAL_FIG = _plot_global_shap()
258
- GLOBAL_FI_TEXT = (get_global_importance_table(MODEL) or pd.DataFrame())
 
 
259
 
260
  # ---------- Gradio UI ----------
261
  with gr.Blocks(theme=gr.themes.Soft(), css="""
 
255
  return fig
256
 
257
  GLOBAL_FIG = _plot_global_shap()
258
+ fi_df = get_global_importance_table(MODEL)
259
+ GLOBAL_FI_TEXT = fi_df if (fi_df is not None) else pd.DataFrame()
260
+
261
 
262
  # ---------- Gradio UI ----------
263
  with gr.Blocks(theme=gr.themes.Soft(), css="""