Commit
•
0e3c552
1
Parent(s):
19dd8dc
Update app.py
Browse files
app.py
CHANGED
@@ -45,8 +45,8 @@ def interpret(*args):
|
|
45 |
fig_m = plt.figure(tight_layout=True)
|
46 |
plt.barh([s[1] for s in scores_desc], [s[0] for s in scores_desc])
|
47 |
plt.title("Feature Shap Values")
|
48 |
-
plt.ylabel("
|
49 |
-
plt.xlabel("
|
50 |
plt.tight_layout()
|
51 |
return fig_m
|
52 |
|
@@ -93,6 +93,7 @@ with gr.Blocks() as demo:
|
|
93 |
choices=unique_occupation,
|
94 |
value=lambda: random.choice(unique_occupation),
|
95 |
)
|
|
|
96 |
relationship = gr.Dropdown(
|
97 |
label="Relationship Status",
|
98 |
choices=unique_relationship,
|
|
|
45 |
fig_m = plt.figure(tight_layout=True)
|
46 |
plt.barh([s[1] for s in scores_desc], [s[0] for s in scores_desc])
|
47 |
plt.title("Feature Shap Values")
|
48 |
+
plt.ylabel("Feature")
|
49 |
+
plt.xlabel("Shap Value")
|
50 |
plt.tight_layout()
|
51 |
return fig_m
|
52 |
|
|
|
93 |
choices=unique_occupation,
|
94 |
value=lambda: random.choice(unique_occupation),
|
95 |
)
|
96 |
+
with gr.Column():
|
97 |
relationship = gr.Dropdown(
|
98 |
label="Relationship Status",
|
99 |
choices=unique_relationship,
|