ywen commited on
Commit
3fef0ca
1 Parent(s): a452def

update default value

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -56,7 +56,7 @@ with demo:
56
  gr.Markdown("# PEZ Dispenser")
57
  gr.Markdown("## Hard Prompts Made Easy (PEZ)")
58
  gr.Markdown("*Want to generate a text prompt for your image that is useful for Stable Diffusion?*")
59
- gr.Markdown("This space can either generate a text fragment that describes your image, or it can shorten an existing text prompt. This space is using OpenCLIP-ViT/H, the same text encoder used by Stable Diffusion V2. After you generate a prompt, try it out on Stable Diffusion [here](https://huggingface.co/stabilityai/stable-diffusion-2-1-base) or [here](https://huggingface.co/spaces/stabilityai/stable-diffusion). For a quick PEZ demo, try clicking on one of the examples at the bottom of this page.")
60
  gr.Markdown("For additional details, you can check out the [paper](https://arxiv.org/abs/2302.03668) and the code on [Github](https://github.com/YuxinWenRick/hard-prompts-made-easy).")
61
  gr.Markdown("Note: Generation with 1000 steps takes ~60 seconds with a T4. Don't want to wait? You can also run on [Google Colab](https://colab.research.google.com/drive/1VSFps4siwASXDwhK_o29dKA9COvTnG8A?usp=sharing). Or, you can reduce the number of steps.")
62
 
@@ -70,8 +70,8 @@ with demo:
70
  input_prompt = gr.Textbox(label="Target Prompt")
71
  prompt_button = gr.Button("Distill Prompt")
72
 
73
- prompt_len_field = gr.Number(label="Prompt Length (max 75, recommend 8-16)", default=8)
74
- num_step_field = gr.Number(label="Optimization Steps (max 3000 because of limited resources)", default=1000)
75
 
76
  with gr.Column():
77
  gr.Markdown("### Learned Prompt")
 
56
  gr.Markdown("# PEZ Dispenser")
57
  gr.Markdown("## Hard Prompts Made Easy (PEZ)")
58
  gr.Markdown("*Want to generate a text prompt for your image that is useful for Stable Diffusion?*")
59
+ gr.Markdown("This space can either generate a text fragment that describes your image, or it can shorten an existing text prompt. This space is using OpenCLIP-ViT/H, the same text encoder used by Stable Diffusion V2. After you generate a prompt, try it out on Stable Diffusion [here](https://huggingface.co/stabilityai/stable-diffusion-2-1-base), [here](https://huggingface.co/spaces/stabilityai/stable-diffusion) or on [Midjourney](https://docs.midjourney.com/). For a quick PEZ demo, try clicking on one of the examples at the bottom of this page.")
60
  gr.Markdown("For additional details, you can check out the [paper](https://arxiv.org/abs/2302.03668) and the code on [Github](https://github.com/YuxinWenRick/hard-prompts-made-easy).")
61
  gr.Markdown("Note: Generation with 1000 steps takes ~60 seconds with a T4. Don't want to wait? You can also run on [Google Colab](https://colab.research.google.com/drive/1VSFps4siwASXDwhK_o29dKA9COvTnG8A?usp=sharing). Or, you can reduce the number of steps.")
62
 
 
70
  input_prompt = gr.Textbox(label="Target Prompt")
71
  prompt_button = gr.Button("Distill Prompt")
72
 
73
+ prompt_len_field = gr.Number(label="Prompt Length (max 75, recommend 8-16)", value=8)
74
+ num_step_field = gr.Number(label="Optimization Steps (max 3000 because of limited resources)", value=1000)
75
 
76
  with gr.Column():
77
  gr.Markdown("### Learned Prompt")