コード例 #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
ファイル: server.py プロジェクト: hurti9/web-charm
def root():
    return app.send_static_file('Client.html')
コード例 #4
0
def home():
    return app.send_static_file('index.html')
コード例 #5
0
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
ファイル: __init__.py プロジェクト: Axeka379/Twidder
def client():
    #client.html or /static/client.html???
    return app.send_static_file('client.html')
コード例 #8
0
ファイル: server.py プロジェクト: samuelllsvensson/Twidder
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
ファイル: server.py プロジェクト: peatersson/TDDD97
def welcome_view():
    return app.send_static_file('client.html')
コード例 #12
0
ファイル: server.py プロジェクト: soerenmaucher/TDDD97
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)
コード例 #14
0
def index():
    return app.send_static_file('index.html')