Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.PHONY:start
start:
docker-compose up --build -d

.PHONY:stop
stop:
docker-compose down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,23 @@ To use dreamGPT, you will need to have the following installed:

Then, you can run the dreamGPT script to generate new ideas:

### Manually

1. Run `poetry install` to install dependencies.
2. Run `poetry run start` to start dreamGPT.

### Automatically

I assume that you already have docker and run it in background

1. Run `docker-compose up --build -d` to install all dependencies and start dreamGPT service
2. To stop dreamGPT service, run command `docker-compose down`

or if you prefer to use Makefile

1. Run command `make start` to install all dependencies and start dreamGPT service
2. Run command `make stop` to stop dreamGPT service

Once you run it, dreamGPT generates a random seed of concepts and will use these as a starting point for its dreaming process. Here is a screenshot of the first iteration. Notice that the scores are not very high. As dreamGPT evolves the dreams you will start to see higher scores with even better ideas.

<center>
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3'

services:
app:
build:
context: ./docker
dockerfile: Dockerfile
volumes:
- .:/app
command: poetry run start
17 changes: 17 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Start with the official Python 3.10 image
FROM python:3.10

# Install poetry
RUN pip install poetry

# Set the working directory to /app
WORKDIR /app

# Copy the current directory contents into the container at /app
COPY . /app

# Install any needed packages specified in pyproject.toml
RUN poetry install

# Run the application command
CMD ["poetry", "run", "start"]