Debug with global config variable
This commit is contained in:
+2
-1
@@ -4,6 +4,7 @@ import uuid
|
||||
from flask import Flask, request, jsonify
|
||||
from pymongo import MongoClient
|
||||
from tools.aichat import generate
|
||||
from shared import config
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@@ -95,4 +96,4 @@ def device_network():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(debug=True)
|
||||
app.run(debug=config.DEBUG)
|
||||
Reference in New Issue
Block a user