Home
Softono

Prompt Extend

Open source Apache-2.0 Jupyter Notebook
177
Stars
7
Forks
4
Issues
4
Watchers
3 years
Last Commit

 About Prompt Extend

extending stable diffusion prompts with suitable style cues using text generation

Platforms

Web Self-hosted

Languages

Jupyter Notebook

Need Help Installing Prompt Extend?

We provide expert installation service for this software. Our team will install, configure, and secure Prompt Extend on your server. plans start at just $30.

Prompt Extend

View on GitHub

Prompt Extend

Generic badge

Text generation model for generating suitable style cues given the main idea for a prompt.

Play with it on HuggingFace Space.

Tokenizer and Model on HuggingFace Hub.

Usage

from transformers import pipeline

text_pipe = pipeline('text-generation', model='daspartho/prompt-extend')

prompt = "peaceful village landscape"
extended_prompt = text_pipe(prompt, num_return_sequences=1)[0]["generated_text"]
print(extended_prompt)
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("daspartho/prompt-extend")

model = AutoModelForCausalLM.from_pretrained("daspartho/prompt-extend")

Code

Examples

Contributing

If you want to contribute code, simply create a pull request. If you have an idea, create an issue and the developers will look into it!