roieri100 commited on
Commit
89155dc
·
verified ·
1 Parent(s): d3b4f78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -57,7 +57,7 @@ def get_songs_by_artist(artist_name:str)-> list:
57
  Args:
58
  artist_name: the name of the artist
59
  """
60
- df = pd.read_csv('spotify-2023.csv')
61
  artist_name = artist_name.lower()
62
  df['artist(s)_name'] = df['artist(s)_name'].str.lower()
63
  songs = df.apply(lambda row: artist_name in row['artist(s)_name'].lower(), axis=1)['track_name'].tolist()
 
57
  Args:
58
  artist_name: the name of the artist
59
  """
60
+ df = pd.read_csv('spotify-2023.csv', encoding='latin1')
61
  artist_name = artist_name.lower()
62
  df['artist(s)_name'] = df['artist(s)_name'].str.lower()
63
  songs = df.apply(lambda row: artist_name in row['artist(s)_name'].lower(), axis=1)['track_name'].tolist()