Spaces:
Runtime error
Runtime error
edit app.py
Browse files
app.py
CHANGED
@@ -141,7 +141,8 @@ with gr.Blocks() as demo:
|
|
141 |
def update_guesses(cur, i, guessed_words, guesses_df):
|
142 |
if cur.get('guess') and cur['guess'] not in guessed_words:
|
143 |
guessed_words.add(cur['guess'])
|
144 |
-
|
|
|
145 |
cur['i'] = i
|
146 |
guesses_df.loc[i] = cur
|
147 |
i += 1
|
|
|
141 |
def update_guesses(cur, i, guessed_words, guesses_df):
|
142 |
if cur.get('guess') and cur['guess'] not in guessed_words:
|
143 |
guessed_words.add(cur['guess'])
|
144 |
+
if cur['sim']:
|
145 |
+
cur['sim'] = round(cur['sim'], 2)
|
146 |
cur['i'] = i
|
147 |
guesses_df.loc[i] = cur
|
148 |
i += 1
|