brendabor commited on
Commit
58ad677
1 Parent(s): 9328c52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -27,7 +27,13 @@ except Exception as e:
27
  # tokenizer = joblib.load('tokenizer.pkl') # Update this to the correct path
28
 
29
  # Load the dataset
30
- df = pd.read_csv('df1.csv') # Ensure this is the correct DataFrame
 
 
 
 
 
 
31
 
32
  # Set up the title of the app
33
  st.title('Emotion and Audio Feature-based Song Recommendation System')
 
27
  # tokenizer = joblib.load('tokenizer.pkl') # Update this to the correct path
28
 
29
  # Load the dataset
30
+ df = pd.read_csv('df1.csv')
31
+ #remove null values
32
+ df = df.dropna()
33
+
34
+ # Drop unwanted columns
35
+ #dropping irrelevant features
36
+ df = df.drop(['Unnamed: 0', 'lyrics_filename', 'analysis_url', 'track_href',"type","id","uri"], axis = 1)
37
 
38
  # Set up the title of the app
39
  st.title('Emotion and Audio Feature-based Song Recommendation System')