LituRout commited on
Commit
1ea89ec
1 Parent(s): baecff8

add license

Browse files
Files changed (2) hide show
  1. app.py +22 -0
  2. header.html +8 -1
app.py CHANGED
@@ -661,5 +661,27 @@ with image_blocks as demo:
661
 
662
  btn.click(fn=predict, inputs=[ddim_steps, gamma, gluing_kernel_size, gluing_kernel_sigma, omega, image, prompt], outputs=[image_out1, image_out2, community_icon, loading_icon])
663
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
664
  image_blocks.queue()
665
  image_blocks.launch()
 
661
 
662
  btn.click(fn=predict, inputs=[ddim_steps, gamma, gluing_kernel_size, gluing_kernel_sigma, omega, image, prompt], outputs=[image_out1, image_out2, community_icon, loading_icon])
663
 
664
+
665
+ gr.HTML(
666
+ """
667
+ <div class="footer">
668
+ <p>Image Inpainting by <a href="https://huggingface.co/spaces/PSLD/PSLD" style="text-decoration: underline;" target="_blank">PSLD</a> - Generative Foundation Model by <a href="https://huggingface.co/runwayml" style="text-decoration: underline;" target="_blank">RunwayML</a> - Gradio Demo by 🤗 Hugging Face
669
+ </p>
670
+ </div>
671
+ <div class="acknowledgments">
672
+ <p><h4>LICENSE</h4>
673
+ The model is licensed with a <a href="https://huggingface.co/spaces/CompVis/stable-diffusion-license" style="text-decoration: underline;" target="_blank">CreativeML Open RAIL-M</a> license. The authors claim no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in this license. The license forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please <a href="https://huggingface.co/spaces/CompVis/stable-diffusion-license" target="_blank" style="text-decoration: underline;" target="_blank">read the license</a></p>
674
+ <p><h4>Biases and content acknowledgment of Stable Diffusion</h4>
675
+ Despite how impressive being able to turn text into image is, beware to the fact that this model may output content that reinforces or exacerbates societal biases, as well as realistic faces, pornography and violence. The model was trained on the <a href="https://laion.ai/blog/laion-5b/" style="text-decoration: underline;" target="_blank">LAION-5B dataset</a>, which scraped non-curated image-text-pairs from the internet (the exception being the removal of illegal content) and is meant for research purposes. You can read more in the <a href="https://huggingface.co/CompVis/stable-diffusion-v1-4" style="text-decoration: underline;" target="_blank">model card</a></p>
676
+ <p><h4>Limitations of PSLD</h4>
677
+ Our evaluation is based on <a href="https://huggingface.co/runwayml" style="text-decoration: underline;" target="_blank">Stable Diffusion</a> which was trained on the <a href="https://laion.ai/blog/laion-5b/" style="text-decoration: underline;" target="_blank">LAION-5B dataset</a>.
678
+ Biases in this dataset and the generative foundation model will be implicitly affecting our algorithm. Our method
679
+ can work with any latent diffusion model and we expect new foundation models trained on better datasets like <a href="https://www.datacomp.ai/" style="text-decoration: underline;" target="_blank">DataComp</a>
680
+ to mitigate these issues.
681
+ </p>
682
+ </div>
683
+ """
684
+ )
685
+
686
  image_blocks.queue()
687
  image_blocks.launch()
header.html CHANGED
@@ -7,7 +7,14 @@
7
  margin-bottom: 10px;
8
  ">
9
  <h1 style="font-weight: 900; align-items: center; margin-bottom: 7px; margin-top: 20px;">
10
- PSLD Inpainting Demo
11
  </h1>
12
  </div>
 
 
 
 
 
 
 
13
  </div>
 
7
  margin-bottom: 10px;
8
  ">
9
  <h1 style="font-weight: 900; align-items: center; margin-bottom: 7px; margin-top: 20px;">
10
+ PSLD Image Inpainting
11
  </h1>
12
  </div>
13
+ <div>
14
+ <p style="align-items: center; margin-bottom: 7px;">
15
+ Image inpainting by Posterior Sampling with Latent Diffusion (PSLD) <br>
16
+ Given an image and a user defined inpainting mask,
17
+ click on Inpaint to generate the missing parts.
18
+ </p>
19
+ </div>
20
  </div>