Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Commit 
							
							·
						
						500f1d9
	
1
								Parent(s):
							
							5cc514c
								
Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -1,5 +1,14 @@ | |
| 1 | 
             
            from datasets import load_dataset
         | 
| 2 | 
             
            import streamlit as st
         | 
|  | |
| 3 |  | 
| 4 | 
             
            dataset = load_dataset("merve/poetry", streaming=True)
         | 
| 5 | 
            -
            df = pd.DataFrame.from_dict(dataset["train"])
         | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
             
            from datasets import load_dataset
         | 
| 2 | 
             
            import streamlit as st
         | 
| 3 | 
            +
            import pandas as pd
         | 
| 4 |  | 
| 5 | 
             
            dataset = load_dataset("merve/poetry", streaming=True)
         | 
| 6 | 
            +
            df = pd.DataFrame.from_dict(dataset["train"])
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            st.write("Most appearing words including stopwords")
         | 
| 9 | 
            +
            st.bar_chart(words[0:50])
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            st.write("Number of poems for each author")
         | 
| 12 | 
            +
            sns.catplot(x="author", data=df, kind="count", aspect = 4)
         | 
| 13 | 
            +
            plt.xticks(rotation=90)
         | 
| 14 | 
            +
            st.pyplot()
         |