Machine Learning, Deep Learning, Artificial Intelligence, AI.
else: labels[genre_label] = 1 # Counting labels in both sets count_genres(df['train']) count_genres(df['test']) # Obtaining genres and count values genres = list(labels.keys()) counts = list(labels.values()) # Plotting bar plot fig = px.bar(x = genres, y = counts, text = counts)