Skip to content

Backend

rishi2019194 edited this page Oct 18, 2023 · 6 revisions

Functions Description of the backend

App.py

landing_page()

Renders to the landing page of the web-app

search_page()

Render to the search page of the web-app

predict()

Returns movie recommendations on the basis of user-input movies

search()

Returns top-10 movie searches for an input string in the search box

feedback()

Handles user feedback submission

send_mail()

Handles user feedback submission and mails the results

success()

Renders to the success page

Utils.py

create_colored_tags(genres)

Utility function to create colored tags for different movie genres
Input: Movie genres; Output: Colored tags for those genres

beautify_feedback_data(data)

create_movie_genres(movie_genre_df)

Utility function for creating a dictionary for movie-genres mapping
Input: data frame of movies.csv; Output: Dictionary of movies-genres mapping

send_email_to_user(recipient_email, categorized_data)

Search.py

starts_with(self, word)

anywhere(self, word, visited_words)

results(self, word)

results_top_ten(self, word)

Item_based.py

recommend_for_new_user(user_rating)

Clone this wiki locally