giorgio-caparvi commited on
Commit
e8fb341
·
1 Parent(s): daf8021

fixing return file

Browse files
Files changed (1) hide show
  1. api/app.py +1 -1
api/app.py CHANGED
@@ -93,7 +93,7 @@ def generate_design():
93
 
94
 
95
  # Return the image as a file download
96
- return send_file(img_io, mimetype='image/jpeg', as_attachment=True, attachment_filename='generated_image.jpg')
97
 
98
  except Exception as e:
99
  return str(e), 500
 
93
 
94
 
95
  # Return the image as a file download
96
+ return send_file(img_io, mimetype='image/jpeg', as_attachment=True, download_name='generated_image.jpg')
97
 
98
  except Exception as e:
99
  return str(e), 500