def main():
    start_thread()
    global thread1
    global welcome
    num, listtohtml = todiagflow()
    print(listtohtml)
    if welcome == 1:
        num = 0
    else:
        welcome = 1
    if thread1.isAlive() == False:
        thread1.start()
    return render_template("index.html", bot_string=listtohtml, bot_number=num)
def e():
    start_thread()
    clean()
    return jsonify({})
def d():
    start_thread()
    return jsonify({})