irfantea commited on
Commit
35651d8
1 Parent(s): ab950a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -23,7 +23,6 @@ st.set_page_config(
23
  login(token = os.environ['hf_token'])
24
  dataset = load_dataset("irfantea/collections", data_files='smartfarmingsentences.csv', split='train')
25
  df = dataset.to_pandas()
26
- print(df.head())
27
  st.dataframe(df)
28
 
29
  def set_cleantext(dataframe):
@@ -146,7 +145,7 @@ plt.axis('off')
146
  st.pyplot(plt)
147
 
148
  #Show Top 10 Words
149
- word_freq = Counter(all_words.split()).most_common(1000)
150
  df_word_freq = pd.DataFrame(word_freq, columns=['Word', 'Frequency'])
151
- st.subheader("Top 10 Words")
152
- st.dataframe(df_word_freq.head(1000), use_container_width=True)
 
23
  login(token = os.environ['hf_token'])
24
  dataset = load_dataset("irfantea/collections", data_files='smartfarmingsentences.csv', split='train')
25
  df = dataset.to_pandas()
 
26
  st.dataframe(df)
27
 
28
  def set_cleantext(dataframe):
 
145
  st.pyplot(plt)
146
 
147
  #Show Top 10 Words
148
+ word_freq = Counter(all_words.split()).most_common(100)
149
  df_word_freq = pd.DataFrame(word_freq, columns=['Word', 'Frequency'])
150
+ st.subheader("Top 100 Words")
151
+ st.dataframe(df_word_freq.head(100), use_container_width=True)