Update app.py
Browse files
app.py
CHANGED
@@ -108,7 +108,7 @@ with gr.Blocks() as demo:
|
|
108 |
answer.value = a
|
109 |
info[user]['score'] += 1
|
110 |
info[user]['count'] += 1
|
111 |
-
bot_message = f"πμ λ΅μ
λλ€! λ€μ λ¬Έμ μ
λλ€.\n{q}\n νμ¬ μ μ: {info[user]['score']}"
|
112 |
if quiz_count == info[user]['count']:
|
113 |
bot_message = f"λͺ¨λ ν΄μ¦λ₯Ό λ€ νμμ΅λλ€. μ μλ {info[user]['score']:3.1f}μ μ
λλ€."
|
114 |
info[user]['done'] = True
|
|
|
108 |
answer.value = a
|
109 |
info[user]['score'] += 1
|
110 |
info[user]['count'] += 1
|
111 |
+
bot_message = f"πμ λ΅μ
λλ€! λ€μ λ¬Έμ μ
λλ€.\n{q}\n- νμ¬ μ μ: {info[user]['score']}μ \n- μμ μκ°: {time.time() - info[user]['time']:4.3f}μ΄"
|
112 |
if quiz_count == info[user]['count']:
|
113 |
bot_message = f"λͺ¨λ ν΄μ¦λ₯Ό λ€ νμμ΅λλ€. μ μλ {info[user]['score']:3.1f}μ μ
λλ€."
|
114 |
info[user]['done'] = True
|