Spaces:
Runtime error
Runtime error
Rename to groupchat playground
Browse files- app.py +4 -2
- configs.py +1 -1
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def get_description_text():
|
|
| 28 |
return f"""
|
| 29 |
# {TITLE}
|
| 30 |
|
| 31 |
-
This is an AutoGen playground built with [Panel](https://panel.holoviz.org/). You can use it to interact with the AutoGen agents. Scroll down to see the code for creating and using the agents.
|
| 32 |
|
| 33 |
#### [[AutoGen](https://github.com/microsoft/autogen)] [[Discord](https://discord.gg/pAbnFJrkgZ)] [[Paper](https://arxiv.org/abs/2308.08155)] [[SourceCode](https://github.com/thinkall/autogen-demos)]
|
| 34 |
"""
|
|
@@ -293,7 +293,9 @@ async def reply_chat(contents, user, instance):
|
|
| 293 |
collection_name = f"{int(time.time())}_{random.randint(0, 100000)}"
|
| 294 |
instance.collection_name = collection_name
|
| 295 |
|
| 296 |
-
column_agents_list = [[a.value for a in agent[0]] for agent in column_agents]+[
|
|
|
|
|
|
|
| 297 |
if (
|
| 298 |
not hasattr(instance, "agent_list")
|
| 299 |
or instance.agents_list != column_agents_list
|
|
|
|
| 28 |
return f"""
|
| 29 |
# {TITLE}
|
| 30 |
|
| 31 |
+
This is an AutoGen group chat playground built with [Panel](https://panel.holoviz.org/). You can use it to interact with the AutoGen agents. Scroll down to see the code for creating and using the agents.
|
| 32 |
|
| 33 |
#### [[AutoGen](https://github.com/microsoft/autogen)] [[Discord](https://discord.gg/pAbnFJrkgZ)] [[Paper](https://arxiv.org/abs/2308.08155)] [[SourceCode](https://github.com/thinkall/autogen-demos)]
|
| 34 |
"""
|
|
|
|
| 293 |
collection_name = f"{int(time.time())}_{random.randint(0, 100000)}"
|
| 294 |
instance.collection_name = collection_name
|
| 295 |
|
| 296 |
+
column_agents_list = [[a.value for a in agent[0]] for agent in column_agents] + [
|
| 297 |
+
switch_code.value
|
| 298 |
+
]
|
| 299 |
if (
|
| 300 |
not hasattr(instance, "agent_list")
|
| 301 |
or instance.agents_list != column_agents_list
|
configs.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import autogen
|
| 2 |
|
| 3 |
TIMEOUT = 60
|
| 4 |
-
TITLE = "Microsoft AutoGen Playground"
|
| 5 |
Q1 = "What's AutoGen?"
|
| 6 |
Q2 = "Write a python function to compute the sum of numbers."
|
| 7 |
Q3 = "find papers on LLM applications from arxiv in the last week, create a markdown table of different domains."
|
|
|
|
| 1 |
import autogen
|
| 2 |
|
| 3 |
TIMEOUT = 60
|
| 4 |
+
TITLE = "Microsoft AutoGen Group Chat Playground"
|
| 5 |
Q1 = "What's AutoGen?"
|
| 6 |
Q2 = "Write a python function to compute the sum of numbers."
|
| 7 |
Q3 = "find papers on LLM applications from arxiv in the last week, create a markdown table of different domains."
|