Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rishi2019194 authored Oct 16, 2023
1 parent 9249be0 commit 2f6bf05
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/recommenderapp/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
"""
Expand Down

0 comments on commit 2f6bf05

Please sign in to comment.