ywen akhaliq HF staff commited on
Commit
8da63a9
1 Parent(s): 3fef0ca

add duplicate spaces badge (#2)

Browse files

- add duplicate spaces badge (6c2c05be672ada65c904d6e5c8897ae3cfafef90)


Co-authored-by: AK <akhaliq@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -59,7 +59,12 @@ with demo:
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
-
 
 
 
 
 
63
  with gr.Row():
64
  with gr.Column():
65
  gr.Markdown("### Image to Prompt")
 
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
+ gr.HTML("""
63
+ <p>For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings.
64
+ <br/>
65
+ <a href="https://huggingface.co/spaces/tomg-group-umd/pez-dispenser?duplicate=true">
66
+ <img style="margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>
67
+ <p/>""")
68
  with gr.Row():
69
  with gr.Column():
70
  gr.Markdown("### Image to Prompt")