Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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()
|