added application variable
Browse files
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 |
-
|
|
|
|
| 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()
|