Spaces:
Sleeping
Sleeping
imseldrith
commited on
Commit
·
b81d159
1
Parent(s):
10355f6
Update tapp.py
Browse files
tapp.py
CHANGED
@@ -88,7 +88,7 @@ def api_generate_image():
|
|
88 |
return jsonify({'error': f"An error occurred while writing the image to file: {e}"}), 500
|
89 |
|
90 |
finally:
|
91 |
-
|
92 |
|
93 |
return send_file(image_path, mimetype='image/jpeg', as_attachment=True)
|
94 |
|
|
|
88 |
return jsonify({'error': f"An error occurred while writing the image to file: {e}"}), 500
|
89 |
|
90 |
finally:
|
91 |
+
imagine.close()
|
92 |
|
93 |
return send_file(image_path, mimetype='image/jpeg', as_attachment=True)
|
94 |
|