acecalisto3 commited on
Commit
d201423
·
verified ·
1 Parent(s): 51d064e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -154,9 +154,10 @@ def chat_interface(message, history, agent_cluster, temperature=0.9, max_new_tok
154
  return (message, response)
155
  with gr.Blocks(theme='ParityError/Interstellar') as demo:
156
  with gr.Row():
157
- for agent_name, agent_data in agent_roles.items():
158
- gr.Button(agent_name, variant="secondary").click(toggle_agent, inputs=[gr.Button], outputs=[gr.Textbox])
159
- gr.Textbox(agent_data["description"], interactive=False)
 
160
 
161
  with gr.Row():
162
  gr.ChatInterface(
 
154
  return (message, response)
155
  with gr.Blocks(theme='ParityError/Interstellar') as demo:
156
  with gr.Row():
157
+ for agent_name, agent_data in agent_roles.items():
158
+ button = gr.Button(agent_name, variant="secondary")
159
+ textbox = gr.Textbox(agent_data["description"], interactive=False)
160
+ button.click(toggle_agent, inputs=[button], outputs=[textbox])
161
 
162
  with gr.Row():
163
  gr.ChatInterface(