Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -102,7 +102,7 @@ with gr.Blocks() as demo:
|
|
102 |
answer.value = a
|
103 |
info[user]['score'] += 1
|
104 |
info[user]['count'] += 1
|
105 |
-
bot_message = f"πμ λ΅μ
λλ€! λ€μ λ¬Έμ μ
λλ€.\n{q}"
|
106 |
if quiz_count == info[user]['count']:
|
107 |
bot_message = f"λͺ¨λ ν΄μ¦λ₯Ό λ€ νμμ΅λλ€. μ μλ {info[user]['score']:3.1f}μ μ
λλ€."
|
108 |
info[user]['done'] = True
|
@@ -120,6 +120,8 @@ with gr.Blocks() as demo:
|
|
120 |
hint1 += y
|
121 |
else:
|
122 |
hint1 += "X"
|
|
|
|
|
123 |
bot_message = f"***{message}***!? π§ λ€μ νλ² μκ°ν΄λ³΄μΈμ.\nννΈ: {hint1}"
|
124 |
info[user]['score'] -= 0.1
|
125 |
|
|
|
102 |
answer.value = a
|
103 |
info[user]['score'] += 1
|
104 |
info[user]['count'] += 1
|
105 |
+
bot_message = f"πμ λ΅μ
λλ€! λ€μ λ¬Έμ μ
λλ€.\n{q}\n νμ¬ μ μ: {info[user]['score']}"
|
106 |
if quiz_count == info[user]['count']:
|
107 |
bot_message = f"λͺ¨λ ν΄μ¦λ₯Ό λ€ νμμ΅λλ€. μ μλ {info[user]['score']:3.1f}μ μ
λλ€."
|
108 |
info[user]['done'] = True
|
|
|
120 |
hint1 += y
|
121 |
else:
|
122 |
hint1 += "X"
|
123 |
+
else:
|
124 |
+
hint1 += "X"
|
125 |
bot_message = f"***{message}***!? π§ λ€μ νλ² μκ°ν΄λ³΄μΈμ.\nννΈ: {hint1}"
|
126 |
info[user]['score'] -= 0.1
|
127 |
|