def scale_input(score_list):
    spotify_df = pd.read_csv('spotify_data_v4.csv')
    spotify_df_clean = spotify_df[['genre', 'genre_label', 'loudness', 'energy', 'danceability', 'instrumentalness']]
    X = spotify_df_clean.drop(['genre', 'genre_label'], axis=1)
    y = spotify_df_clean['genre_label']
    (X_train, X_test, y_train, y_test) = train_test_split(X, y, test_size=0.3, random_state=0)
    X_scaler = MinMaxScaler().fit(X_train)
    score_list_scaled = X_scaler.transform([score_list])
    return score_list_scaled
def scale_input(score_list):
    spotify_df = pd.read_csv('spotify_data_v4.csv')
    spotify_df_clean = spotify_df[['genre', 'genre_label', 'loudness', 'energy', 'danceability', 'instrumentalness']]
    X = spotify_df_clean.drop(['genre', 'genre_label'], axis=1)
    y = spotify_df_clean['genre_label']
    (X_train, X_test, y_train, y_test) = train_test_split(X, y, test_size=0.3, random_state=0)
    X_scaler = MinMaxScaler().fit(X_train)
    score_list_scaled = X_scaler.transform([score_list])
    return score_list_scaled