yoon-gu commited on
Commit
d42f23f
β€’
1 Parent(s): 1a5d841

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -110,6 +110,7 @@ with gr.Blocks() as demo:
110
  with gr.Row():
111
  button1 = gr.Button(value="1번")
112
  button2 = gr.Button(value="2번")
 
113
  button3 = gr.Button(value="3번")
114
  button4 = gr.Button(value="4번")
115
 
@@ -120,6 +121,7 @@ with gr.Blocks() as demo:
120
  sdf = df[start:end]
121
  pokemons_set = sdf[sdf['types'].apply(lambda x: (types in x)) | (types == "λͺ¨λ“  νƒ€μž…")]
122
  pokemons_set = pokemons_set.to_dict("records")
 
123
  if done:
124
  if "ν€΄μ¦ˆμ‹œμž‘" == message.replace(" ", ""):
125
  q, a, random_buttons = get_question_answer(pokemons_set)
 
110
  with gr.Row():
111
  button1 = gr.Button(value="1번")
112
  button2 = gr.Button(value="2번")
113
+ with gr.Row():
114
  button3 = gr.Button(value="3번")
115
  button4 = gr.Button(value="4번")
116
 
 
121
  sdf = df[start:end]
122
  pokemons_set = sdf[sdf['types'].apply(lambda x: (types in x)) | (types == "λͺ¨λ“  νƒ€μž…")]
123
  pokemons_set = pokemons_set.to_dict("records")
124
+ random_buttons = [gr.Button(value=f"{name}") for name in ['1번', '2번', '3번', '4번']]
125
  if done:
126
  if "ν€΄μ¦ˆμ‹œμž‘" == message.replace(" ", ""):
127
  q, a, random_buttons = get_question_answer(pokemons_set)