Skip to content

Commit

Permalink
narrow the number of valid "today words"
Browse files Browse the repository at this point in the history
  • Loading branch information
LBlend committed Jun 1, 2022
1 parent f38b28c commit 88176ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def fetch_today_info(): # Set seed to current day in order to generate same wor
random.seed(app.current_day)

# Fetch info
app.puzzle_number = random.randint(0, 5000) # Only fetch words from the first 5000 to avoid obscure words
app.puzzle_number = random.randint(0, 3000) # Only fetch words from the first 3000 to avoid obscure words
app.current_word = model.index_to_key[app.puzzle_number]
app.top_1000 = model.most_similar(app.current_word, topn=1000)
app.top_1000_words = list(map(lambda x: x[0], app.top_1000))
Expand Down

0 comments on commit 88176ce

Please sign in to comment.