Spaces:
Runtime error
Runtime error
debugging inability to produce correct gif depending on parameters
Browse files- image_posterior.py +2 -2
image_posterior.py
CHANGED
@@ -55,8 +55,8 @@ def create_gif(explanation_blr, img_name, segments, image, n_images=20, n_max=5)
|
|
55 |
"""
|
56 |
draws = explanation_blr.draw_posterior_samples(n_images)
|
57 |
# Setup temporary directory to store paths in
|
58 |
-
print("tempfile.tempdir:", tempfile.TemporaryDirectory())
|
59 |
-
temp_path = tempfile.TemporaryDirectory()
|
60 |
for root, dirs, files in os.walk(temp_path):
|
61 |
for f in files:
|
62 |
os.unlink(os.path.join(root, f))
|
|
|
55 |
"""
|
56 |
draws = explanation_blr.draw_posterior_samples(n_images)
|
57 |
# Setup temporary directory to store paths in
|
58 |
+
print("tempfile.tempdir:", tempfile.TemporaryDirectory().name)
|
59 |
+
temp_path = tempfile.TemporaryDirectory().name
|
60 |
for root, dirs, files in os.walk(temp_path):
|
61 |
for f in files:
|
62 |
os.unlink(os.path.join(root, f))
|