Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import pandas as pd
|
3 |
+
import numpy as np
|
4 |
+
|
5 |
+
st.title('Movie Recommender System')
|
6 |
+
st.subheader('Welcome to the Movie Recommender System built by Shreemit')
|
7 |
+
|
8 |
+
user_id = st.text_input('Enter User ID here:')
|
9 |
+
print(user_id)
|
10 |
+
|
11 |
+
ratings = pd.read_csv('ratings.csv')
|
12 |
+
|
13 |
+
if user_id:
|
14 |
+
st.write('Movies you have rated:')
|
15 |
+
st.write(ratings[ratings['userId'] == int(user_id)])
|
16 |
+
st.write('Your ID', user_id)
|