Skip to content

Commit

Permalink
Merge pull request #169 from griptape-ai:dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
shhlife authored Nov 26, 2024
2 parents ad06fb5 + c4a1c60 commit eab7e3c
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 4 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ You can previous and download more examples [here](examples/README.md).

## Recent Changelog

### Nov 27, 2024

* Added example: [PDF -> Profile Pic](examples/pdf_to_profile_pic.png) where a resume in pdf form is summarized, then used as inspiration for an image generation prompt to create a profile picture.

* Fixed: `gtUIKnowledgeBaseTool` was breaking if a Griptape Cloud Knowledge Base had an `_` in the name. It now handles that situation.

### Nov 26, 2024
* Upgrade to Griptape Framework v0.34.3
* New Nodes:
Expand Down
6 changes: 6 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ It's handy to be able to review render logs and quickly understand your next act
![Maya Render Log](render_log_review.png)
Download: [render_log_review.png](render_log_review.png)

## PDF to Profile Pic
Uses `Griptape Load: Text` node to import a PDF of a robot resume, then the `Griptape Text: Summary` node to generate a summary of the text. Next, a Griptape Agent creates a prompt to generate a profile picture for the robot described in the text. Finally, an image is generated using `Black Forest Labs flux-pro-1.1`.

![Profile Pic](pdf_to_profile_pic.png)
Download: [pdf_to_profile_pic.png](pdf_to_profile_pic.png)

## Black Forest Labs - Flux Pro 1.1 Image Generation
Use Black Forest Labs Flux models with Griptape!

Expand Down
Binary file added examples/pdf_to_profile_pic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions nodes/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def to_pascal_case(string):
# First, replace any non-word character with a space
string = re.sub(r"[^\w\s]", " ", string)

# Replace underscores with spaces
string = string.replace("_", " ")

# Split the string into words
words = string.split()

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ priority = "explicit"
[project]
name = "comfyui-griptape"
description = "Griptape LLM(Large Language Model) Nodes for ComfyUI."
version = "1.0.21"
version = "1.0.22"
license = {file = "LICENSE"}
dependencies = ["griptape[all]==0.34.3", "python-dotenv", "git+https://griptape.com/griptape-ai/griptape-black-forest.git"]
dependencies = ["griptape[all]==0.34.3", "python-dotenv", "git+https://github.com/griptape-ai/griptape-black-forest.git"]

[project.urls]
Repository = "https://github.com/griptape-ai/ComfyUI-Griptape"
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
griptape[all]==0.34.2
griptape[all]==0.34.3
python-dotenv
git+https://griptape.com/griptape-ai/griptape-black-forest.git
git+https://github.com/griptape-ai/griptape-black-forest.git

0 comments on commit eab7e3c

Please sign in to comment.