Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -255,7 +255,9 @@ def _plot_global_shap():
|
|
| 255 |
return fig
|
| 256 |
|
| 257 |
GLOBAL_FIG = _plot_global_shap()
|
| 258 |
-
|
|
|
|
|
|
|
| 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="""
|