Exemplo n.º 1
0
####### IMPORTS ########
from blue import app

# Run server
if __name__ == '__main__':
    app.run()
Exemplo n.º 2
0
from blue import app
#app.run(debug=True)
app.run(debug=True, host='0.0.0.0', port=5000)
Exemplo n.º 3
0
from blue import app

if __name__ == "__main__":
    app.run(host="0.0.0.0", port=5000, debug=True)
Exemplo n.º 4
0
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()
Exemplo n.º 5
0
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)
Exemplo n.º 6
0
from blue import app

if __name__ == "__main__":
    app.run(debug=True)
Exemplo n.º 7
0
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()
"""
Exemplo n.º 8
0
Arquivo: run.py Projeto: teddymcw/blue
import os

from blue import app

port = int(os.environ.get('POST', 5000))
app.run(host='0.0.0.0', port=post, debug=True)