yoon-gu commited on
Commit
d9c3ab3
1 Parent(s): 4ad039f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -17,7 +17,9 @@ with gr.Blocks() as demo:
17
 
18
 
19
  def respond(message, chat_history):
20
- print(quiz_start.value)
 
 
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']