From 2f6bf05cbdf03e60587fadfcc4b2eb161f4368d1 Mon Sep 17 00:00:00 2001 From: rishi2019194 <58341663+rishi2019194@users.noreply.github.com> Date: Mon, 16 Oct 2023 14:13:29 -0400 Subject: [PATCH] Update app.py --- src/recommenderapp/app.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/recommenderapp/app.py b/src/recommenderapp/app.py index 81a94c4f9..ca7130f23 100644 --- a/src/recommenderapp/app.py +++ b/src/recommenderapp/app.py @@ -30,6 +30,22 @@ def landing_page(): return render_template("search_page.html") +@app.route("/get_started", methods=["POST"]) +def get_started(): + """ + Handle the Get Started button click and redirect to search_page. + """ + return redirect(url_for("search_page.html")) + + +@app.route("/search_page") +def search_page(): + """ + Renders the search page. + """ + return render_template("search_page.html") + + @app.route("/predict", methods=["POST"]) def predict(): """