https://github.com/griptape-ai/griptape-bria
https://github.com/griptape-ai/griptape-bria
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/griptape-ai/griptape-bria
- Owner: griptape-ai
- License: apache-2.0
- Created: 2024-11-19T00:48:21.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-10T00:05:01.000Z (about 1 year ago)
- Last Synced: 2025-07-04T02:11:36.285Z (6 months ago)
- Language: Python
- Size: 1.48 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Griptape Bria Extension
## Overview
This extension provides an [Image Generation Driver](https://docs.griptape.ai/stable/griptape-framework/drivers/image-generation-drivers) for [Bria](https://bria.ai/).
```python
from griptape.bria.drivers.bria_image_generation_driver import BriaImageGenerationDriver
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=BriaImageGenerationDriver(model="2.3")
),
off_prompt=True,
),
FileManagerTool(),
]
)
agent.run(
"Save a picture of a watercolor painting of a dog riding a skateboard to the desktop."
)
```
## Installation
Poetry:
```bash
poetry add https://github.com/griptape-ai/griptape-bria.git
```
Pip:
```bash
pip install git+https://github.com/griptape-ai/griptape-bria.git
```