Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated to griptape1.0 #12

Merged
merged 1 commit into from
Dec 11, 2024
Merged
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
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,14 @@ This extension provides an [Image Generation Driver](https://docs.griptape.ai/st
from griptape.black_forest.drivers.black_forest_image_generation_driver import (
BlackForestImageGenerationDriver,
)
from griptape.engines import PromptImageGenerationEngine
from griptape.structures import Agent
from griptape.tools import FileManagerTool, PromptImageGenerationTool

agent = Agent(
tools=[
PromptImageGenerationTool(
engine=PromptImageGenerationEngine(
image_generation_driver=BlackForestImageGenerationDriver(
image_generation_driver=BlackForestImageGenerationDriver(
model="flux-pro-1.1"
)
),
off_prompt=True,
),
Expand Down
7 changes: 2 additions & 5 deletions examples/drivers/example_agent.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
from griptape.black_forest.drivers.black_forest_image_generation_driver import (
BlackForestImageGenerationDriver,
)
from griptape.engines import PromptImageGenerationEngine
from griptape.structures import Agent
from griptape.tools import FileManagerTool, PromptImageGenerationTool

agent = Agent(
tools=[
PromptImageGenerationTool(
engine=PromptImageGenerationEngine(
image_generation_driver=BlackForestImageGenerationDriver(
model="flux-pro-1.1"
)
image_generation_driver=BlackForestImageGenerationDriver(
model="flux-pro-1.1"
),
off_prompt=True,
),
Expand Down
9 changes: 3 additions & 6 deletions examples/drivers/example_agent_canny.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
from griptape.black_forest.drivers.black_forest_image_generation_driver import (
BlackForestImageGenerationDriver,
)
from griptape.engines import VariationImageGenerationEngine
from griptape.structures import Agent
from griptape.tools import FileManagerTool, VariationImageGenerationTool

agent = Agent(
tools=[
VariationImageGenerationTool(
engine=VariationImageGenerationEngine(
image_generation_driver=BlackForestImageGenerationDriver(
model="flux-pro-1.0-canny", # flux-pro-1.0-canny is required for Canny.
guidance=100,
)
image_generation_driver=BlackForestImageGenerationDriver(
model="flux-pro-1.0-canny", # flux-pro-1.0-canny is required for Canny.
guidance=100,
),
off_prompt=True,
),
Expand Down
7 changes: 2 additions & 5 deletions examples/drivers/example_agent_depth.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
from griptape.black_forest.drivers.black_forest_image_generation_driver import (
BlackForestImageGenerationDriver,
)
from griptape.engines import VariationImageGenerationEngine
from griptape.structures import Agent
from griptape.tools import FileManagerTool, VariationImageGenerationTool

agent = Agent(
tools=[
VariationImageGenerationTool(
engine=VariationImageGenerationEngine(
image_generation_driver=BlackForestImageGenerationDriver(
model="flux-pro-1.0-depth", # flux-pro-1.0-depth is required for Depth.
)
image_generation_driver=BlackForestImageGenerationDriver(
model="flux-pro-1.0-depth", # flux-pro-1.0-depth is required for Depth.
),
off_prompt=True,
),
Expand Down
7 changes: 2 additions & 5 deletions examples/drivers/example_agent_inpainting.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
from griptape.black_forest.drivers.black_forest_image_generation_driver import (
BlackForestImageGenerationDriver,
)
from griptape.engines import InpaintingImageGenerationEngine
from griptape.structures import Agent
from griptape.tools import FileManagerTool, InpaintingImageGenerationTool

agent = Agent(
tools=[
InpaintingImageGenerationTool(
engine=InpaintingImageGenerationEngine(
image_generation_driver=BlackForestImageGenerationDriver(
model="flux-pro-1.0", # flux-pro-1.0 is required for inpainting.
)
image_generation_driver=BlackForestImageGenerationDriver(
model="flux-pro-1.0", # flux-pro-1.0 is required for inpainting.
),
off_prompt=True,
),
Expand Down
7 changes: 2 additions & 5 deletions examples/drivers/example_agent_outpainting.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
from griptape.black_forest.drivers.black_forest_image_generation_driver import (
BlackForestImageGenerationDriver,
)
from griptape.engines import OutpaintingImageGenerationEngine
from griptape.structures import Agent
from griptape.tools import FileManagerTool, OutpaintingImageGenerationTool

agent = Agent(
tools=[
OutpaintingImageGenerationTool(
engine=OutpaintingImageGenerationEngine(
image_generation_driver=BlackForestImageGenerationDriver(
model="flux-pro-1.0", # flux-pro-1.0 is required for outpainting.
)
image_generation_driver=BlackForestImageGenerationDriver(
model="flux-pro-1.0", # flux-pro-1.0 is required for outpainting.
),
off_prompt=True,
),
Expand Down
9 changes: 3 additions & 6 deletions examples/drivers/example_agent_variation.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from griptape.black_forest.drivers.black_forest_image_generation_driver import (
BlackForestImageGenerationDriver,
)
from griptape.engines import VariationImageGenerationEngine
from griptape.structures import Agent
from griptape.tools import (
FileManagerTool,
Expand All @@ -11,11 +10,9 @@
agent = Agent(
tools=[
VariationImageGenerationTool(
engine=VariationImageGenerationEngine(
image_generation_driver=BlackForestImageGenerationDriver(
model="flux-pro-1.1-ultra", # flux-pro-1.1-ultra is a better model for image variation
image_prompt_strength=0.7,
)
image_generation_driver=BlackForestImageGenerationDriver(
model="flux-pro-1.1-ultra", # flux-pro-1.1-ultra is a better model for image variation
image_prompt_strength=0.7,
),
off_prompt=True,
),
Expand Down
Loading