Exemple #1
0
def classifier_predict():
    if request.method == 'POST':
        f = request.files['file']
        global csv_path
        csv_path = "csv/" + f.filename
        f.save(csv_path)
        X = pd.read_csv(csv_path)
        global classifier_clf
        y = classifier_clf.predict(X).reshape(-1, 1)
        ans = np.hstack((y, X))
        ans = pd.DataFrame(ans)
        ans.to_csv('static/response.csv', index=False)
    return app.send_static_file("response.csv")
Exemple #2
0
def statisk():
    return app.send_static_file('client.html')
Exemple #3
0
def root():
    return app.send_static_file('Client.html')
def home():
    return app.send_static_file('index.html')
def get_wav(wav_name):
    try:
        return app.send_static_file(app.config["CLIENT_WAV"] + str(wav_name))

    except FileNotFoundError:
        abort(404)
Exemple #6
0
def hello():
    #database_helper.init_db()
    print "database initialized"
    #api()
    return app.send_static_file('client.html')
Exemple #7
0
def client():
    #client.html or /static/client.html???
    return app.send_static_file('client.html')
Exemple #8
0
def root():
    return app.send_static_file('client.html')
Exemple #9
0
def not_found(e):
    return app.send_static_file('index.html')
Exemple #10
0
def static_file(path):
    return app.send_static_file(path)
Exemple #11
0
def welcome_view():
    return app.send_static_file('client.html')
Exemple #12
0
def hello_world():
    return app.send_static_file('client.html')
Exemple #13
0
def kg_init(filepath):
    print('filepath = {}'.format(filepath))
    return app.send_static_file(filepath)
def index():
    return app.send_static_file('index.html')