Spaces:
Sleeping
Sleeping
Yoon-gu Hwang
commited on
Commit
•
920014e
1
Parent(s):
3db7d02
힌트 추가
Browse files
app.py
CHANGED
@@ -110,7 +110,13 @@ with gr.Blocks() as demo:
|
|
110 |
bot_message = f"퀴즈를 강제 종료합니다."
|
111 |
info[user]['done'] = True
|
112 |
else:
|
113 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
info[user]['score'] -= 0.1
|
115 |
|
116 |
chat_history.append((message, bot_message))
|
|
|
110 |
bot_message = f"퀴즈를 강제 종료합니다."
|
111 |
info[user]['done'] = True
|
112 |
else:
|
113 |
+
hint1 = ""
|
114 |
+
for x, y in zip(message, answer.value):
|
115 |
+
if x == y:
|
116 |
+
hint1 += x
|
117 |
+
else:
|
118 |
+
hint1 += "X"
|
119 |
+
bot_message = f"***{message}***!? 🧐 다시 한번 생각해보세요.\n힌트: {hint1}"
|
120 |
info[user]['score'] -= 0.1
|
121 |
|
122 |
chat_history.append((message, bot_message))
|