Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,9 @@ with gr.Blocks() as demo:
|
|
17 |
|
18 |
|
19 |
def respond(message, chat_history):
|
20 |
-
|
|
|
|
|
21 |
if not quiz_start.value:
|
22 |
chosen = random.choice(pokemons)
|
23 |
name = chosen['name']
|
|
|
17 |
|
18 |
|
19 |
def respond(message, chat_history):
|
20 |
+
if "퀴즈 시작" == message:
|
21 |
+
bot_message = "퀴즈를 시작합니다.\n" + QUESTION_TEMPLATE["question"].format(img_url=img_url)
|
22 |
+
quiz_start.value = True
|
23 |
if not quiz_start.value:
|
24 |
chosen = random.choice(pokemons)
|
25 |
name = chosen['name']
|