acecalisto3 commited on
Commit
3daee70
·
verified ·
1 Parent(s): badebc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -9
app.py CHANGED
@@ -181,15 +181,10 @@ def chat_interface(message, history, agent_role, temperature=0.9, max_new_tokens
181
  return (message, response)
182
 
183
  with gr.Blocks(theme='ParityError/Interstellar') as demo:
184
- gr.Dropdown(
185
- label="Agent auswählen",
186
- choices=agent_roles,
187
- value=selected_agent,
188
- interactive=True,
189
- show_label=True,
190
- type="index",
191
- allow_custom_value=False,
192
- ).change(change_agent, inputs=[gr.Dropdown], outputs=[gr.Textbox])
193
 
194
  with gr.Row():
195
  gr.ChatInterface(
 
181
  return (message, response)
182
 
183
  with gr.Blocks(theme='ParityError/Interstellar') as demo:
184
+ with gr.Row():
185
+ for agent_name, agent_data in agent_roles.items():
186
+ gr.Button(agent_name, variant="secondary").click(toggle_agent, inputs=[gr.Button], outputs=[gr.Textbox])
187
+ gr.Textbox(agent_data["description"], interactive=False)
 
 
 
 
 
188
 
189
  with gr.Row():
190
  gr.ChatInterface(