Skip to content

Commit

Permalink
requirements.txt clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye committed Nov 24, 2023
1 parent 9f20592 commit 36a641b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repos:
rev: 'v0.0.255'
hooks:
- id: ruff
args: [--fix]
args: [----unsafe-fixes]
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.6.3
hooks:
Expand Down
10 changes: 1 addition & 9 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ transformers
pandas
langchain
nest_asyncio
pegasusx
google-generativeai
EdgeGPT
langchain-experimental
playwright
wget==3.2
Expand All @@ -24,9 +21,7 @@ soundfile
huggingface-hub
google-generativeai
sentencepiece
duckduckgo-search
PyPDF2
agent-protocol
accelerate
chromadb
tiktoken
Expand Down Expand Up @@ -54,15 +49,13 @@ openai
opencv-python
prettytable
safetensors
streamlit
test-tube
timm
torchmetrics
webdataset
marshmallow
yapf
autopep8
dalle3
cohere
torchvision
rich
Expand All @@ -71,5 +64,4 @@ rich
mkdocs
mkdocs-material
mkdocs-glightbox

pre-commit
pre-commit
6 changes: 3 additions & 3 deletions swarms/structs/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ def parse_done_token(response: str) -> bool:

class Flow:
"""
Flow is a chain like structure from langchain that provides the autonomy to language models
to generate sequential responses.
Flow is the structure that provides autonomy to any llm in a reliable and effective fashion.
The flow structure is designed to be used with any llm and provides the following features:
Features:
* Interactive, AI generates, then user input
* Message history and performance history fed -> into context -> truncate if too long
Expand Down
1 change: 1 addition & 0 deletions swarms/structs/sequential_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ def get_task_results(self) -> Dict[str, Any]:
return {task.description: task.result for task in self.tasks}

def remove_task(self, task_description: str) -> None:
"""Remove tasks from sequential workflow"""
self.tasks = [
task for task in self.tasks if task.description != task_description
]
Expand Down

0 comments on commit 36a641b

Please sign in to comment.