thak123 commited on
Commit
f0176cc
·
1 Parent(s): 6bc5afd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ def sample_word_and_display_info():
75
  pos = "v"
76
 
77
  # Get a random word of the chosen part of speech from the Croatian WordNet
78
- word = random.choice(wordnet.all_lemma_names(pos, lang="hrv"))
79
  print(f"Word: {word}")
80
  # Get the definition and image (change the function for your source)
81
  definition, image_url = get_definition_and_image(word)
 
75
  pos = "v"
76
 
77
  # Get a random word of the chosen part of speech from the Croatian WordNet
78
+ word = random.choice(list(wordnet.all_lemma_names(pos, lang="hrv")))
79
  print(f"Word: {word}")
80
  # Get the definition and image (change the function for your source)
81
  definition, image_url = get_definition_and_image(word)