Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def display_sketch(sketch):
|
|
24 |
plt.imshow(image_data, cmap='gray')
|
25 |
plt.axis('off')
|
26 |
|
27 |
-
with tempfile.NamedTemporaryFile(delete=False, suffix=".png"
|
28 |
plt.savefig(temp_file.name, bbox_inches='tight')
|
29 |
temp_file_path = temp_file.name
|
30 |
|
|
|
24 |
plt.imshow(image_data, cmap='gray')
|
25 |
plt.axis('off')
|
26 |
|
27 |
+
with tempfile.NamedTemporaryFile(delete=False, suffix=".png") as temp_file:
|
28 |
plt.savefig(temp_file.name, bbox_inches='tight')
|
29 |
temp_file_path = temp_file.name
|
30 |
|