Spaces:
Runtime error
Runtime error
OmerFarooq
commited on
Commit
•
af5aead
1
Parent(s):
25bda10
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ def superimpose_single(heatmap, img, alpha = 0.4):
|
|
81 |
|
82 |
# Superimpose the heatmap on original image
|
83 |
superimposed_img = jet_heatmap * alpha + img
|
84 |
-
|
85 |
|
86 |
return superimposed_img
|
87 |
|
|
|
81 |
|
82 |
# Superimpose the heatmap on original image
|
83 |
superimposed_img = jet_heatmap * alpha + img
|
84 |
+
superimposed_img = keras.utils.array_to_img(superimposed_img)
|
85 |
|
86 |
return superimposed_img
|
87 |
|