Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -56,9 +56,9 @@ def do_process(img, baseline):
|
|
56 |
baselines=baselines,
|
57 |
target=predictions)
|
58 |
attrs = explanation.attributions[0]
|
59 |
-
fig, ax = plt.subplots(nrows=1, ncols=1, figsize=(
|
60 |
fig, ax = visualize_image_attr(attr=attrs.squeeze(), original_image=img, method='blended_heat_map',
|
61 |
-
sign='all', show_colorbar=True, title=
|
62 |
plt_fig_axis=(fig, ax), use_pyplot=False)
|
63 |
buf = io.BytesIO()
|
64 |
fig.savefig(buf)
|
|
|
56 |
baselines=baselines,
|
57 |
target=predictions)
|
58 |
attrs = explanation.attributions[0]
|
59 |
+
fig, ax = plt.subplots(nrows=1, ncols=1, figsize=(10, 10))
|
60 |
fig, ax = visualize_image_attr(attr=attrs.squeeze(), original_image=img, method='blended_heat_map',
|
61 |
+
sign='all', show_colorbar=True, title=None,
|
62 |
plt_fig_axis=(fig, ax), use_pyplot=False)
|
63 |
buf = io.BytesIO()
|
64 |
fig.savefig(buf)
|