bariumc commited on
Commit
b3e3a34
1 Parent(s): 7bc1287

added application variable

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -91,6 +91,8 @@ def upload_image():
91
 
92
  except Exception as e:
93
  return jsonify(json.dumps({'error': str(e)})), 500
 
94
 
 
95
  if __name__ == '__main__':
96
- app.run(debug=True,reload=True)
 
91
 
92
  except Exception as e:
93
  return jsonify(json.dumps({'error': str(e)})), 500
94
+ application = app
95
 
96
+ # Only run the app if this script is executed directly
97
  if __name__ == '__main__':
98
+ application.run()