sayedM commited on
Commit
64feb60
·
1 Parent(s): cef0ce8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -65,4 +65,17 @@ text_input = gr.inputs.Textbox(label="Prompt") # New input for the text prompt
65
  outputs = gr.Image(type="numpy", label="Output Image")
66
 
67
  # Launch the Gradio interface
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  gr.Interface(fn=get_results, inputs=[image_input, text_input], outputs=outputs).launch(share=False)
 
65
  outputs = gr.Image(type="numpy", label="Output Image")
66
 
67
  # Launch the Gradio interface
68
+ gr.HTML(
69
+ """
70
+ <div class="footer">
71
+ <p>Model by <a href="https://deci.ai" style="text-decoration: underline;" target="_blank">Deci.ai</a> - Gradio Demo by 🤗 Hugging Face
72
+ </p>
73
+ </div>
74
+ <div class="acknowledgments">
75
+ <p><h4>LICENSE</h4>
76
+ <p><h4>Biases and content acknowledgment</h4>
77
+ 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/Deci/DeciDiffusion-v1-0" style="text-decoration: underline;" target="_blank">model card</a></p>
78
+ </div>
79
+ """
80
+ )
81
  gr.Interface(fn=get_results, inputs=[image_input, text_input], outputs=outputs).launch(share=False)