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