Spaces:
Sleeping
Sleeping
Edward J. Schwartz
commited on
Commit
·
356346e
1
Parent(s):
9953197
debug
Browse files
app.py
CHANGED
@@ -131,7 +131,7 @@ with gr.Blocks() as demo:
|
|
131 |
out = model_wrap(text)
|
132 |
print(out, file=sys.stderr)
|
133 |
explainer = shap.Explainer(model_wrap)
|
134 |
-
shap_values = explainer(
|
135 |
|
136 |
# Dimensions are (batch size, text size, number of classes)
|
137 |
# Since we care about positive sentiment, use index 1
|
|
|
131 |
out = model_wrap(text)
|
132 |
print(out, file=sys.stderr)
|
133 |
explainer = shap.Explainer(model_wrap)
|
134 |
+
shap_values = explainer(text)
|
135 |
|
136 |
# Dimensions are (batch size, text size, number of classes)
|
137 |
# Since we care about positive sentiment, use index 1
|