Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -84,6 +84,9 @@ def set_chatbot(btn, ld, state):
|
|
84 |
empty = len(res[choice].pingpongs) == 0
|
85 |
return (res[choice].build_uis(), choice, gr.update(visible=empty), gr.update(interactive=not empty))
|
86 |
|
|
|
|
|
|
|
87 |
with gr.Blocks(css=MODEL_SELECTION_CSS, theme='gradio/soft') as demo:
|
88 |
with gr.Column() as chat_view:
|
89 |
idx = gr.State(0)
|
|
|
84 |
empty = len(res[choice].pingpongs) == 0
|
85 |
return (res[choice].build_uis(), choice, gr.update(visible=empty), gr.update(interactive=not empty))
|
86 |
|
87 |
+
def set_example(btn):
|
88 |
+
return btn, gr.update(visible=False)
|
89 |
+
|
90 |
with gr.Blocks(css=MODEL_SELECTION_CSS, theme='gradio/soft') as demo:
|
91 |
with gr.Column() as chat_view:
|
92 |
idx = gr.State(0)
|