changgun commited on
Commit
ff168b2
1 Parent(s): f45344a
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -17,13 +17,14 @@ def test_v01():
17
 
18
  def test_v02():
19
  dataset = load_dataset("merve/poetry", streaming=True)
 
20
  df = pd.DataFrame.from_dict(dataset["train"])
21
- st.write("Most appearing words including stopwords")
22
- # st.bar_chart(words[0:50])
23
- st.write("Number of poems for each author")
24
- sns.catplot(x="author", data=df, kind="count", aspect = 4)
25
- plt.xticks(rotation=90)
26
- st.pyplot()
27
  return st
28
 
29
  test_v02()
 
17
 
18
  def test_v02():
19
  dataset = load_dataset("merve/poetry", streaming=True)
20
+ print(dataset)
21
  df = pd.DataFrame.from_dict(dataset["train"])
22
+ # st.write("Most appearing words including stopwords")
23
+ # # st.bar_chart(words[0:50])
24
+ # st.write("Number of poems for each author")
25
+ # sns.catplot(x="author", data=df, kind="count", aspect = 4)
26
+ # plt.xticks(rotation=90)
27
+ # st.pyplot()
28
  return st
29
 
30
  test_v02()