AmirShabani commited on
Commit
0c43bc8
·
1 Parent(s): 824fcc0

need to fix the recommendation part

Browse files
Files changed (1) hide show
  1. gradio_app.py +1 -1
gradio_app.py CHANGED
@@ -101,7 +101,7 @@ def display_movie(movie, rating):
101
  user_input[movie] = rating
102
  poster = get_poster(movie)
103
 
104
- if len(user_input) > 5:
105
  # Get the recommended movies from the input
106
  r_movies, r_posters = get_recommendations(user_input)
107
 
 
101
  user_input[movie] = rating
102
  poster = get_poster(movie)
103
 
104
+ if len(user_input) == 5:
105
  # Get the recommended movies from the input
106
  r_movies, r_posters = get_recommendations(user_input)
107