Spaces:
Runtime error
Runtime error
fix layout size
Browse files
app.py
CHANGED
@@ -145,7 +145,7 @@ with gr.Blocks() as demo:
|
|
145 |
feature_names=df.columns.tolist(),
|
146 |
)
|
147 |
|
148 |
-
fig2 = plt.figure(figsize=(
|
149 |
plt.title("SHAP Waterfall Plot") # Optionally set a title for the SHAP plot
|
150 |
plt.tight_layout()
|
151 |
shap.waterfall_plot(
|
|
|
145 |
feature_names=df.columns.tolist(),
|
146 |
)
|
147 |
|
148 |
+
fig2 = plt.figure(figsize=(10, 5)) # Create a new figure for SHAP plot
|
149 |
plt.title("SHAP Waterfall Plot") # Optionally set a title for the SHAP plot
|
150 |
plt.tight_layout()
|
151 |
shap.waterfall_plot(
|