gaspar-avit commited on
Commit
9a43bce
·
1 Parent(s): 8493e6c

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -211,7 +211,7 @@ def generate_poster(movie_data):
211
  """
212
 
213
  # Get movie genres
214
- genres = [i['name'] for i in eval(str(movie_data['genres']))]
215
  st.write(genres)
216
  #genres_string = ', '.join(genres)
217
  genres_string = []
 
211
  """
212
 
213
  # Get movie genres
214
+ genres = [i['name'] for i in eval(movie_data['genres'].values[0])]
215
  st.write(genres)
216
  #genres_string = ', '.join(genres)
217
  genres_string = []