Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|