示例#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")
示例#2
0
def statisk():
    return app.send_static_file('client.html')
示例#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)
示例#6
0
def hello():
    #database_helper.init_db()
    print "database initialized"
    #api()
    return app.send_static_file('client.html')
示例#7
0
def client():
    #client.html or /static/client.html???
    return app.send_static_file('client.html')
示例#8
0
def root():
    return app.send_static_file('client.html')
示例#9
0
文件: app.py 项目: dng1999/StoopApp
def not_found(e):
    return app.send_static_file('index.html')
示例#10
0
文件: app.py 项目: dng1999/StoopApp
def static_file(path):
    return app.send_static_file(path)
示例#11
0
def welcome_view():
    return app.send_static_file('client.html')
示例#12
0
def hello_world():
    return app.send_static_file('client.html')
示例#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')