Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
kyegomez committed Nov 8, 2023
1 parent 2e7905d commit fe19f21
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 4 deletions.
29 changes: 29 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,35 @@ You can learn more about mkdocs on the [mkdocs website](https://www.mkdocs.org/)
- Run all the tests in the tests folder
`find ./tests -name '*.py' -exec pytest {} \;`

## Code Quality
`quality.sh` runs 4 different code formatters for ultra reliable code cleanup using Autopep8, Black, Ruff, YAPF
1. Open your terminal.

2. Change directory to where `quality.sh` is located using `cd` command:
```sh
cd /path/to/directory
```

3. Make sure the script has execute permissions:
```sh
chmod +x quality.sh
```

4. Run the script:
```sh
./quality.sh
```

If the script requires administrative privileges, you might need to run it with `sudo`:
```sh
sudo ./quality.sh
```

Please replace `/path/to/directory` with the actual path where the `quality.sh` script is located on your system.

If you're asking for a specific content or functionality inside `quality.sh` related to YAPF or other code quality tools, you would need to edit the `quality.sh` script to include the desired commands, such as running YAPF on a directory. The contents of `quality.sh` would dictate exactly what happens when you run it.


## 📄 license

By contributing, you agree that your contributions will be licensed under an [MIT license](https://github.com/kyegomez/swarms/blob/develop/LICENSE.md).
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion example.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from swarms.models import OpenAIChat
from swarms.structs import Flow

api_key = ""
api_key = "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"

# Initialize the language model, this model can be swapped out with Anthropic, ETC, Huggingface Models like Mistral, ETC
llm = OpenAIChat(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "swarms"
version = "2.1.3"
version = "2.1.4"
description = "Swarms - Pytorch"
license = "MIT"
authors = ["Kye Gomez <kye@apac.ai>"]
Expand Down
4 changes: 2 additions & 2 deletions swarms/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# from swarms.models.gpt4v import GPT4Vision
# from swarms.models.dalle3 import Dalle3
# from swarms.models.distilled_whisperx import DistilWhisperModel
from swarms.models.fuyu import Fuyu # Not working, wait until they update
# from swarms.models.fuyu import Fuyu # Not working, wait until they update

import sys

Expand All @@ -45,5 +45,5 @@
"WizardLLMStoryTeller",
# "GPT4Vision",
# "Dalle3",
"Fuyu",
# "Fuyu",
]

0 comments on commit fe19f21

Please sign in to comment.