Spaces:
Sleeping
Sleeping
OmerFarooq
commited on
Commit
•
12925a0
1
Parent(s):
79cd544
Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,7 @@ def superimpose_single(heatmap, img, alpha = 0.4):
|
|
107 |
|
108 |
# Superimpose the heatmap on original image
|
109 |
superimposed_img = jet_heatmap * alpha + img
|
110 |
-
|
111 |
|
112 |
return superimposed_img
|
113 |
|
|
|
107 |
|
108 |
# Superimpose the heatmap on original image
|
109 |
superimposed_img = jet_heatmap * alpha + img
|
110 |
+
superimposed_img = keras.utils.array_to_img(superimposed_img)
|
111 |
|
112 |
return superimposed_img
|
113 |
|