Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,7 +62,7 @@ def get_description_text():
|
|
| 62 |
return f"""
|
| 63 |
# {TITLE}
|
| 64 |
|
| 65 |
-
This is
|
| 66 |
|
| 67 |
#### [[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)]
|
| 68 |
"""
|
|
@@ -352,7 +352,7 @@ def init_groupchat(event, collection_name):
|
|
| 352 |
|
| 353 |
async def agents_chat(init_sender, manager, contents, agents, RAG):
|
| 354 |
# Check if a file is uploaded
|
| 355 |
-
if RAG.value:
|
| 356 |
# Save the file and process it
|
| 357 |
file_path = "path/to/saved/file" # Define the path to save the uploaded file
|
| 358 |
RAG.save(file_path)
|
|
@@ -360,7 +360,7 @@ async def agents_chat(init_sender, manager, contents, agents, RAG):
|
|
| 360 |
|
| 361 |
# Prepend the extracted text to the contents
|
| 362 |
contents = raw_text + ' ' + contents
|
| 363 |
-
|
| 364 |
# Determine the recipient
|
| 365 |
recipient = (
|
| 366 |
manager
|
|
|
|
| 62 |
return f"""
|
| 63 |
# {TITLE}
|
| 64 |
|
| 65 |
+
This is a [YI-6B-200K](https://huggingface.co/01-ai/Yi-6B-200K) AGI + Agent Factory built with [Panel](https://panel.holoviz.org/). Build Agents that use YI-200K and avoid context window overflows! . Scroll down to see the code for creating and using the agents.
|
| 66 |
|
| 67 |
#### [[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)]
|
| 68 |
"""
|
|
|
|
| 352 |
|
| 353 |
async def agents_chat(init_sender, manager, contents, agents, RAG):
|
| 354 |
# Check if a file is uploaded
|
| 355 |
+
if RAG and RAG.value:
|
| 356 |
# Save the file and process it
|
| 357 |
file_path = "path/to/saved/file" # Define the path to save the uploaded file
|
| 358 |
RAG.save(file_path)
|
|
|
|
| 360 |
|
| 361 |
# Prepend the extracted text to the contents
|
| 362 |
contents = raw_text + ' ' + contents
|
| 363 |
+
|
| 364 |
# Determine the recipient
|
| 365 |
recipient = (
|
| 366 |
manager
|