Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -212,15 +212,15 @@ with gr.Blocks() as demo:
|
|
212 |
return btn, infos[user].history, md, *random_buttons
|
213 |
|
214 |
play.click(respond,
|
215 |
-
inputs=[play, chatbot,
|
216 |
outputs=[play, chatbot, leader_board, button1, button2, button3, button4])
|
217 |
skip.click(respond,
|
218 |
-
inputs=[skip, chatbot,
|
219 |
outputs=[play, chatbot, leader_board, button1, button2, button3, button4])
|
220 |
|
221 |
for btn in [button1, button2, button3, button4]:
|
222 |
btn.click(respond,
|
223 |
-
inputs=[btn, chatbot,
|
224 |
outputs=[play, chatbot, leader_board, button1, button2, button3, button4])
|
225 |
|
226 |
def update_table(profile: Optional[gr.OAuthProfile]):
|
|
|
212 |
return btn, infos[user].history, md, *random_buttons
|
213 |
|
214 |
play.click(respond,
|
215 |
+
inputs=[play, chatbot, quiz_count, generation, poke_types],
|
216 |
outputs=[play, chatbot, leader_board, button1, button2, button3, button4])
|
217 |
skip.click(respond,
|
218 |
+
inputs=[skip, chatbot, quiz_count, generation, poke_types],
|
219 |
outputs=[play, chatbot, leader_board, button1, button2, button3, button4])
|
220 |
|
221 |
for btn in [button1, button2, button3, button4]:
|
222 |
btn.click(respond,
|
223 |
+
inputs=[btn, chatbot, quiz_count, generation, poke_types],
|
224 |
outputs=[play, chatbot, leader_board, button1, button2, button3, button4])
|
225 |
|
226 |
def update_table(profile: Optional[gr.OAuthProfile]):
|