Upload with huggingface_hub
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,7 +93,6 @@ with gr.Blocks() as demo:
|
|
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,
|
|
|
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("Shap Value")
|
49 |
+
plt.xlabel("Feature")
|
50 |
plt.tight_layout()
|
51 |
return fig_m
|
52 |
|
|
|
93 |
choices=unique_occupation,
|
94 |
value=lambda: random.choice(unique_occupation),
|
95 |
)
|
|
|
96 |
relationship = gr.Dropdown(
|
97 |
label="Relationship Status",
|
98 |
choices=unique_relationship,
|