Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Co-authored-by: Minfeng Lu <[email protected]>
Co-authored-by: Richard Beales <[email protected]>
  • Loading branch information
3 people authored May 8, 2023
1 parent 0166eac commit 23e1e1e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions autogpt/processing/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ def split_text(
Raises:
ValueError: If the text is longer than the maximum length
"""
flatened_paragraphs = " ".join(text.split("\n"))
flattened_paragraphs = " ".join(text.split("\n"))
nlp = spacy.load(CFG.browse_spacy_language_model)
nlp.add_pipe("sentencizer")
doc = nlp(flatened_paragraphs)
doc = nlp(flattened_paragraphs)
sentences = [sent.text.strip() for sent in doc.sents]

current_chunk = []
Expand Down
2 changes: 1 addition & 1 deletion docs/challenges/introduction.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
indroduction.md
introduction.md
# Introduction to Challenges

Welcome to the Auto-GPT Challenges page! This is a space where we encourage community members to collaborate and contribute towards improving Auto-GPT by identifying and solving challenges that Auto-GPT is not yet able to achieve.
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/goal_oriented/goal_oriented_tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ To know which one, you can run the following command:
```bash
pytest -s -k tests/integration/goal_oriented

If the test is successul, it will record new cassettes in VCR. Then you can just push these to your branch and the pipeline
If the test is successful, it will record new cassettes in VCR. Then you can just push these to your branch and the pipeline
will pass
2 changes: 1 addition & 1 deletion tests/vcr/vcr_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def replace_timestamp_in_request(request: Any) -> Any:
return request
body[
"max_tokens"
] = 0 # this field is incosistent between requests and not used at the moment.
] = 0 # this field is inconsistent between requests and not used at the moment.
for message in body["messages"]:
if "content" in message and "role" in message:
if message["role"] == "system":
Expand Down

0 comments on commit 23e1e1e

Please sign in to comment.