def generateReport():
    try:
        global c 
        c = Categorise(session['file1'],session['file0'],session['target']) 
        # csvoutput = c.run()
        # session['report'] = csvoutput
        c.run()
        return c.getDataFrame1()
    except Exception as e:
        return make_response(jsonify({'error': e.message}), 500)
Exemple #2
0
def generateReport():
    try:
        global c
        c = Categorise(session['file1'], session['file0'], session['target'])
        # csvoutput = c.run()
        # session['report'] = csvoutput
        c.run()
        return c.getDataFrame1()
    except Exception as e:
        return make_response(jsonify({'error': e.message}), 500)
def generateReport():
    if 'target' in session:
        global c 
        c = Categorise(session['file1'],session['file0'],session['target']) 
        # csvoutput = c.run()
        # session['report'] = csvoutput
        c.run()
        return c.getDataFrame1()
        # return render_template('report.html',data=csvoutput)
    else:
        return error_message()