Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ st.write('Try to guess a secret word by semantic similarity')
|
|
51 |
|
52 |
word = st.text_input("Input a word")
|
53 |
|
54 |
-
used_words = [w for w
|
55 |
|
56 |
if st.button("Guess") or word:
|
57 |
if word not in used_words:
|
|
|
51 |
|
52 |
word = st.text_input("Input a word")
|
53 |
|
54 |
+
used_words = [w[0] for w in st.session_state['words']]
|
55 |
|
56 |
if st.button("Guess") or word:
|
57 |
if word not in used_words:
|