imseldrith commited on
Commit
74a17bb
·
1 Parent(s): a1f5a00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -72,7 +72,7 @@ def api_generate_image():
72
  except Exception as e:
73
  return jsonify({'error': f"An error occurred while writing the image to file: {e}"}), 500
74
 
75
- return jsonify({'success': True})
76
 
77
  if __name__ == "__main__":
78
  app.run(host="0.0.0.0",port=7860)
 
72
  except Exception as e:
73
  return jsonify({'error': f"An error occurred while writing the image to file: {e}"}), 500
74
 
75
+ return send_file("generated.jpeg", mimetype='image/jpeg', as_attachment=True) #jsonify({'success': True})
76
 
77
  if __name__ == "__main__":
78
  app.run(host="0.0.0.0",port=7860)