Spaces:
Sleeping
Sleeping
rynmurdock
commited on
Commit
·
9fca74d
1
Parent(s):
0903733
Update app.py
Browse files
app.py
CHANGED
@@ -245,8 +245,8 @@ def background_next_image():
|
|
245 |
for uid in user_id_list:
|
246 |
rated_rows = prevs_df[[i[1]['user:rating'].get(uid, None) is not None for i in prevs_df.iterrows()]]
|
247 |
not_rated_rows = prevs_df[[i[1]['user:rating'].get(uid, None) is None for i in prevs_df.iterrows()]]
|
248 |
-
if len(rated_rows) < 4 or len(not_rated_rows) > 7:
|
249 |
-
print(f'latest user {uid} has < 4 rows or > 7 unrated rows')
|
250 |
continue
|
251 |
|
252 |
print(uid)
|
|
|
245 |
for uid in user_id_list:
|
246 |
rated_rows = prevs_df[[i[1]['user:rating'].get(uid, None) is not None for i in prevs_df.iterrows()]]
|
247 |
not_rated_rows = prevs_df[[i[1]['user:rating'].get(uid, None) is None for i in prevs_df.iterrows()]]
|
248 |
+
if len(rated_rows) < 4:# or len(not_rated_rows) > 7:
|
249 |
+
print(f'latest user {uid} has < 4 rows') # or > 7 unrated rows')
|
250 |
continue
|
251 |
|
252 |
print(uid)
|