Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,8 +36,6 @@ ig = IntegratedGradients(model,
|
|
36 |
method=method,
|
37 |
internal_batch_size=internal_batch_size)
|
38 |
|
39 |
-
# refs:
|
40 |
-
# - fig2pil: https://stackoverflow.com/questions/57316491/how-to-convert-matplotlib-figure-to-pil-image-object-without-saving-image
|
41 |
def do_process(img, baseline):
|
42 |
instance = image.img_to_array(img)
|
43 |
instance = np.expand_dims(instance, axis=0)
|
|
|
36 |
method=method,
|
37 |
internal_batch_size=internal_batch_size)
|
38 |
|
|
|
|
|
39 |
def do_process(img, baseline):
|
40 |
instance = image.img_to_array(img)
|
41 |
instance = np.expand_dims(instance, axis=0)
|