import streamlit as st import pandas as pd import matplotlib.pyplot as plt import seaborn as sns # Read the CSV file df = pd.read_csv('all+++.csv') # Display the CSV file st.title('CSV File Overview') st.dataframe(df) # Bar plot for genres st.title('Genre Bar Plot') genre_counts = df['genre'].value_counts() plt.figure(figsize=(10, 6)) sns.barplot(x=genre_counts.index, y=genre_counts.values) plt.xlabel('Genre') plt.ylabel('Count') plt.xticks(rotation=45) st.pyplot() # Distribution plot for annotation lengths st.title('Annotation Length Distribution') annotation_lengths = df['annotation'].str.len() plt.figure(figsize=(10, 6)) sns.histplot(annotation_lengths, kde=True) plt.xlabel('Annotation Length') plt.ylabel('Count') st.pyplot()