gaspar-avit commited on
Commit
7414166
1 Parent(s): e9a814d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -128,9 +128,9 @@ def map_year(x):
128
  try:
129
  a = re.search('\(([0-9_]+)\)', x[-7:]).group(1)
130
  except:
131
- a = '0'
132
  else:
133
- a = '0'
134
  return a
135
 
136
 
@@ -223,9 +223,7 @@ def generate_poster(movie_data):
223
  """
224
 
225
  # Get movie metadata
226
- genres = [i['name'] for i in eval(movie_data['genres'].values[0])]
227
- genres_string = ', '.join(genres)
228
-
229
  year = movie_data['year'].values[0]
230
 
231
 
 
128
  try:
129
  a = re.search('\(([0-9_]+)\)', x[-7:]).group(1)
130
  except:
131
+ a = ''
132
  else:
133
+ a = ''
134
  return a
135
 
136
 
 
223
  """
224
 
225
  # Get movie metadata
226
+ genres_string = movie_data['genres'].values[0].replace('|', ', ')
 
 
227
  year = movie_data['year'].values[0]
228
 
229