Spaces:
Runtime error
Runtime error
modified html embed pt 3
Browse files- image_posterior.py +1 -1
image_posterior.py
CHANGED
|
@@ -91,7 +91,7 @@ def create_gif(explanation_blr, img_name, segments, image, prediction, n_images=
|
|
| 91 |
imageio.mimwrite(f'{img_name}_explanation.gif', ims)
|
| 92 |
|
| 93 |
html = (
|
| 94 |
-
"<div > <img src='file/{img_name}_explanation.gif' alt='explanation gif'/> <p>Prediction is {prediction}: {labels_dict[prediction]}</p>"
|
| 95 |
+ "</div>"
|
| 96 |
)
|
| 97 |
return html
|
|
|
|
| 91 |
imageio.mimwrite(f'{img_name}_explanation.gif', ims)
|
| 92 |
|
| 93 |
html = (
|
| 94 |
+
f"<div > <img src='file/{img_name}_explanation.gif' alt='explanation gif'/> <p>Prediction is {prediction}: {labels_dict[prediction]}</p>"
|
| 95 |
+ "</div>"
|
| 96 |
)
|
| 97 |
return html
|