Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
150 |
df_word_freq = pd.DataFrame(word_freq, columns=['Word', 'Frequency'])
|
151 |
-
st.subheader("Top
|
152 |
-
st.dataframe(df_word_freq.head(
|
|
|
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)
|