Skip to content

Commit

Permalink
added readme
Browse files Browse the repository at this point in the history
  • Loading branch information
XpycT committed Mar 1, 2023
1 parent 6123df1 commit 79beaaa
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MagicPrompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def generate(model, prompt, temperature, top_k, min_length, max_length, repetiti
with gr.Row():
with gr.Column(scale=80):
text_input = gr.Textbox(
lines=2, show_label=False, value="Cute girl", placeholder="Enter your prompt...")
lines=2, show_label=False, value="", placeholder="Enter your prompt...")
with gr.Column(scale=10):
submit = gr.Button('Generate', variant='primary')
with gr.Row():
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# MagicPrompt Generator

Prompt Generator for Stable Diffusion/Midjourney on GPT-2 models

![](screenshot.png)

Includes model:
- FredZhang7/distilgpt2-stable-diffusion-v2
- Gustavosta/MagicPrompt-Stable-Diffusion
- AUTOMATIC/promptgen-lexart
- AUTOMATIC/promptgen-majinai-unsafe
- succinctly/text2image-prompt-generator

## How to use

Run launch.bat (windows) or launch.sh (linux)

To add models, modify the `models.yaml` file.

Based on @RassilonSleeps and @Gustavosta
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 79beaaa

Please sign in to comment.