yoon-gu commited on
Commit
ad7ae80
Β·
1 Parent(s): 9227ae5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -58,6 +58,8 @@ with gr.Blocks() as demo:
58
  sdf = df[start:end]
59
  pokemons_set = sdf[sdf['types'].apply(lambda x: (types in x)) | (types == "λͺ¨λ“  νƒ€μž…")]
60
  pokemons_set = pokemons_set.to_dict("records")
 
 
61
  if not quiz_start.value:
62
  if "ν€΄μ¦ˆ μ‹œμž‘" == message:
63
  q, a = get_question_answer(pokemons_set)
 
58
  sdf = df[start:end]
59
  pokemons_set = sdf[sdf['types'].apply(lambda x: (types in x)) | (types == "λͺ¨λ“  νƒ€μž…")]
60
  pokemons_set = pokemons_set.to_dict("records")
61
+ if "ν€΄μ¦ˆ μ‹œμž‘" == message:
62
+ quiz_start.value = True
63
  if not quiz_start.value:
64
  if "ν€΄μ¦ˆ μ‹œμž‘" == message:
65
  q, a = get_question_answer(pokemons_set)