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

Update Generate prompt for leonardo #56

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

AliLee0923
Copy link
Contributor

  • Created a function for generating detailed image prompts based on an array of words using the OpenAI gpt-3.5-turbo-instruct model. It creates a pictogram-style description for each word, determining whether the word represents an ACTION or OBJECT, and formats the prompt accordingly. (generatePromptForImageGeneration)
  • Created another function for combining the functionality of generating word suggestions and prompts for Leonardo AI. It fetches suggestions based on a given prompt, processes them into a list of detailed image prompts, and returns the results. (getPromptsForLenonardo)
  • Created a function for generating a detailed image prompt for a single word using the OpenAI API. This is a simplified and focused version of generatePromptForImageGeneration, handling only one word at a time. (generateAPromptForLeonardo)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants