chansung commited on
Commit
c1d72c2
1 Parent(s): fcc28fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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)