Allob commited on
Commit
f007309
1 Parent(s): 6be209f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,10 +36,10 @@ st.dataframe(words_df)
36
 
37
 
38
 
39
- @st.cache_resource
40
  def load_words_dataset():
41
  dataset = load_dataset("marksverdhei/wordnet-definitions-en-2021", split="train")
42
- return dataset["Word"].to_pandas()
43
 
44
  all_words = load_words_dataset()
45
  st.write(all_words)
 
36
 
37
 
38
 
39
+ @st.cache_data
40
  def load_words_dataset():
41
  dataset = load_dataset("marksverdhei/wordnet-definitions-en-2021", split="train")
42
+ return dataset["Word"]
43
 
44
  all_words = load_words_dataset()
45
  st.write(all_words)