# Benedikt Strasser:

from flask import Flask, request
from flask_cors import CORS
import json

app = Flask(__name__)
CORS(app)
supervisor = None


@app.route('/statistics')
def weights():
    data = supervisor.get_statistics()
    return json.dumps(data)


@app.route('/classify')
def classify():
    # Arguments must be: Service, Cleanliness, Value, Sleep Quality, Location, Rooms
    features = {category: int(request.args[category]) for category in request.args}
    return supervisor.classify(features)


def run(_supervisor):
    global supervisor
    supervisor = _supervisor
    app.run(port=5000)

791456f73c4959e42c1eb3e404b126557b2884e9
<mask token>


@app.route('/statistics')
def weights():
    data = supervisor.get_statistics()
    return json.dumps(data)


@app.route('/classify')
def classify():
    features = {category: int(request.args[category]) for category in
        request.args}
    return supervisor.classify(features)


def run(_supervisor):
    global supervisor
    supervisor = _supervisor
    app.run(port=5000)

<mask token>
CORS(app)
<mask token>


@app.route('/statistics')
def weights():
    data = supervisor.get_statistics()
    return json.dumps(data)


@app.route('/classify')
def classify():
    features = {category: int(request.args[category]) for category in
        request.args}
    return supervisor.classify(features)


def run(_supervisor):
    global supervisor
    supervisor = _supervisor
    app.run(port=5000)

<mask token>
app = Flask(__name__)
CORS(app)
supervisor = None


@app.route('/statistics')
def weights():
    data = supervisor.get_statistics()
    return json.dumps(data)


@app.route('/classify')
def classify():
    features = {category: int(request.args[category]) for category in
        request.args}
    return supervisor.classify(features)


def run(_supervisor):
    global supervisor
    supervisor = _supervisor
    app.run(port=5000)

from flask import Flask, request
from flask_cors import CORS
import json
app = Flask(__name__)
CORS(app)
supervisor = None


@app.route('/statistics')
def weights():
    data = supervisor.get_statistics()
    return json.dumps(data)


@app.route('/classify')
def classify():
    features = {category: int(request.args[category]) for category in
        request.args}
    return supervisor.classify(features)


def run(_supervisor):
    global supervisor
    supervisor = _supervisor
    app.run(port=5000)

# Benedikt Strasser:

from flask import Flask, request
from flask_cors import CORS
import json

app = Flask(__name__)
CORS(app)
supervisor = None


@app.route('/statistics')
def weights():
    data = supervisor.get_statistics()
    return json.dumps(data)


@app.route('/classify')
def classify():
    # Arguments must be: Service, Cleanliness, Value, Sleep Quality, Location, Rooms
    features = {category: int(request.args[category]) for category in request.args}
    return supervisor.classify(features)


def run(_supervisor):
    global supervisor
    supervisor = _supervisor
    app.run(port=5000)
