Spaces:
Runtime error
Runtime error
acecalisto3
commited on
Update app.py
Browse files
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 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
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(
|