imseldrith commited on
Commit
c9e1c69
·
1 Parent(s): 95b85b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -33,7 +33,7 @@ def generate_image():
33
  if img_data is None:
34
  return "An error occurred while generating the image."
35
 
36
- img_data = imagine.upscale(image=img_data)
37
 
38
  if img_data is None:
39
  return "An error occurred while upscaling the image."
@@ -72,7 +72,7 @@ def api_generate_image():
72
  if img_data is None:
73
  return jsonify({'error': "An error occurred while generating the image."}), 500
74
 
75
- img_data = imagine.upscale(image=img_data)
76
 
77
  if img_data is None:
78
  return jsonify({'error': "An error occurred while upscaling the image."}), 500
@@ -87,5 +87,5 @@ def api_generate_image():
87
  return send_file(image_path, mimetype='image/jpeg', as_attachment=True)
88
 
89
  if __name__ == "__main__":
90
- app.run(host="0.0.0.0", port=7860)
91
 
 
33
  if img_data is None:
34
  return "An error occurred while generating the image."
35
 
36
+ img_data = imagine.upscale(img_data)
37
 
38
  if img_data is None:
39
  return "An error occurred while upscaling the image."
 
72
  if img_data is None:
73
  return jsonify({'error': "An error occurred while generating the image."}), 500
74
 
75
+ img_data = imagine.upscale(img_data)
76
 
77
  if img_data is None:
78
  return jsonify({'error': "An error occurred while upscaling the image."}), 500
 
87
  return send_file(image_path, mimetype='image/jpeg', as_attachment=True)
88
 
89
  if __name__ == "__main__":
90
+ app.run(host="0.0.0.0", port=7860,debug=True)
91