####### IMPORTS ######## from blue import app # Run server if __name__ == '__main__': app.run()
from blue import app #app.run(debug=True) app.run(debug=True, host='0.0.0.0', port=5000)
from blue import app if __name__ == "__main__": app.run(host="0.0.0.0", port=5000, debug=True)
from blue import app from models import global_model, global_pre_trained_inception_model, global_pre_trained_xception_model import tensorflow as tf import threading global_model() global_pre_trained_xception_model() global_pre_trained_inception_model() if __name__ == "__main__": #tf.keras.backend.clear_session() app.run(host="0.0.0.0", port=5000) # Repeat()
from blue import app import os import sys dirname = os.path.dirname(os.path.abspath(__file__)) dirname_list = dirname.split("/")[:-1] dirname = "/".join(dirname_list) path = dirname + "/api" sys.path.append(path) from blue.api.For_Files_Gen import Function_for_file_generation import threading def Repeat_Insertion(): threading.Timer(3600, Repeat_Insertion).start() Function_for_file_generation() if __name__ == "__main__": #Repeat_Insertion() app.run(debug=True, use_reloader=False)
from blue import app if __name__ == "__main__": app.run(debug=True)
from blue import app from flask.ext.script import Manager # debug mode if __name__ == '__main__': app.run(debug=True) """ #production mode manager = Manager(app) if __name__ == '__main__': manager.run() """
import os from blue import app port = int(os.environ.get('POST', 5000)) app.run(host='0.0.0.0', port=post, debug=True)