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")
def statisk(): return app.send_static_file('client.html')
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)
def hello(): #database_helper.init_db() print "database initialized" #api() return app.send_static_file('client.html')
def client(): #client.html or /static/client.html??? return app.send_static_file('client.html')
def root(): return app.send_static_file('client.html')
def not_found(e): return app.send_static_file('index.html')
def static_file(path): return app.send_static_file(path)
def welcome_view(): return app.send_static_file('client.html')
def hello_world(): return app.send_static_file('client.html')
def kg_init(filepath): print('filepath = {}'.format(filepath)) return app.send_static_file(filepath)
def index(): return app.send_static_file('index.html')