Skip to content

Instantly share code, notes, and snippets.

@srang992
Created April 17, 2022 03:57
Show Gist options
  • Save srang992/4746d44a9eeb362d1fb55801b781fb8a to your computer and use it in GitHub Desktop.
Save srang992/4746d44a9eeb362d1fb55801b781fb8a to your computer and use it in GitHub Desktop.
main streamlit app
dataframe = None
st.title("""
Netflix Recommendation System
This is an Content Based Recommender System made on implicit ratings :smile:.
""")
st.text("")
st.text("")
st.text("")
st.text("")
session.options = st.multiselect(label="Select Movies", options=movies)
st.text("")
st.text("")
session.slider_count = st.slider(label="movie_count", min_value=5, max_value=50)
st.text("")
st.text("")
buffer1, col1, buffer2 = st.columns([1.45, 1, 1])
is_clicked = col1.button(label="Recommend")
if is_clicked:
dataframe = recommend_table(session.options, movie_count=session.slider_count, tfidf_data=tfidf)
st.text("")
st.text("")
st.text("")
st.text("")
if dataframe is not None:
st.table(dataframe)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment