from NAME_1 import NAME_1, render_template

app = NAME_1(__name__)

@app.route("/")
def index():
    return render_template("index.html")

@app.route("/result")
def result():
    return render_template("result.html")

@app.route("/number_guess")
def number_guess():
    secret_number = 100
    guess = int(request.input("Guess a number"))

    if guess < secret_number:
        return render_template("number_too_small.html")
    elif guess > secret_number:
        return render_template("number_too_big.html")
    else:
        return render_template("you_win.html")

if __name__ == "__main__":
    app.run(debug=True)