File size: 413 Bytes
eef9dda
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import streamlit as st
import pandas as pd
import numpy as np

st.title('Movie Recommender System')
st.subheader('Welcome to the Movie Recommender System built by Shreemit')

user_id = st.text_input('Enter User ID here:')
print(user_id)

ratings = pd.read_csv('ratings.csv')

if user_id:
    st.write('Movies you have rated:')
    st.write(ratings[ratings['userId'] == int(user_id)])
st.write('Your ID', user_id)