Spaces:
Runtime error
Runtime error
mindwrapped
commited on
Commit
·
0e03d4b
1
Parent(s):
cfb8b3f
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def get_top_rated_movies_from_user(id):
|
|
71 |
|
72 |
|
73 |
def random_user():
|
74 |
-
return update_user(np.random.randint(0, num_users))
|
75 |
|
76 |
|
77 |
def get_recommendations(id):
|
@@ -127,7 +127,7 @@ with demo:
|
|
127 |
#### Select a user to get recommendations for.
|
128 |
""")
|
129 |
|
130 |
-
inp1 = gr.Slider(0, num_users, value=0, label='User')
|
131 |
# btn1 = gr.Button('Random User')
|
132 |
|
133 |
# top_rated_from_user = get_top_rated_from_user(0)
|
|
|
71 |
|
72 |
|
73 |
def random_user():
|
74 |
+
return update_user(np.random.randint(0, num_users-1))
|
75 |
|
76 |
|
77 |
def get_recommendations(id):
|
|
|
127 |
#### Select a user to get recommendations for.
|
128 |
""")
|
129 |
|
130 |
+
inp1 = gr.Slider(0, num_users-1, value=0, label='User')
|
131 |
# btn1 = gr.Button('Random User')
|
132 |
|
133 |
# top_rated_from_user = get_top_rated_from_user(0)
|