Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -114,11 +114,12 @@ with gr.Blocks() as demo:
|
|
114 |
info[user]['done'] = True
|
115 |
else:
|
116 |
hint1 = ""
|
117 |
-
for
|
118 |
-
if
|
119 |
-
|
120 |
-
|
121 |
-
|
|
|
122 |
bot_message = f"***{message}***!? π§ λ€μ νλ² μκ°ν΄λ³΄μΈμ.\nννΈ: {hint1}"
|
123 |
info[user]['score'] -= 0.1
|
124 |
|
|
|
114 |
info[user]['done'] = True
|
115 |
else:
|
116 |
hint1 = ""
|
117 |
+
for i, y in enumerate(answer.value):
|
118 |
+
if i < len(message):
|
119 |
+
if message[i] == y:
|
120 |
+
hint1 += y
|
121 |
+
else:
|
122 |
+
hint1 += "X"
|
123 |
bot_message = f"***{message}***!? π§ λ€μ νλ² μκ°ν΄λ³΄μΈμ.\nννΈ: {hint1}"
|
124 |
info[user]['score'] -= 0.1
|
125 |
|