Skip to content

Commit

Permalink
Merge branch 'dev' into add-Word-Character-Count-Block
Browse files Browse the repository at this point in the history
  • Loading branch information
aarushik93 authored Nov 26, 2024
2 parents 3c1909e + 951948d commit 02fc437
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions autogpt_platform/backend/backend/blocks/branching.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,17 @@ def run(self, input_data: Input, **kwargs) -> BlockOutput:

value1 = input_data.value1
if isinstance(value1, str):
value1 = float(value1.strip())
try:
value1 = float(value1.strip())
except ValueError:
value1 = value1.strip()

value2 = input_data.value2
if isinstance(value2, str):
value2 = float(value2.strip())
try:
value2 = float(value2.strip())
except ValueError:
value2 = value2.strip()

yes_value = input_data.yes_value if input_data.yes_value is not None else value1
no_value = input_data.no_value if input_data.no_value is not None else value2
Expand Down
2 changes: 1 addition & 1 deletion docs/content/platform/advanced_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ This will generate the Prisma client for PostgreSQL. You will also need to run t

```bash
cd autogpt_platform/
docker compose up -d
docker compose up -d --build
```

You can then run the migrations from the `backend` directory.
Expand Down
2 changes: 1 addition & 1 deletion docs/content/platform/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ To run the backend services, follow these steps:

* Run the backend services:
```
docker compose up -d
docker compose up -d --build
```
This command will start all the necessary backend services defined in the `docker-compose.combined.yml` file in detached mode.

Expand Down

0 comments on commit 02fc437

Please sign in to comment.