Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|