3mrology commited on
Commit
2efc332
·
1 Parent(s): d68d870

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py CHANGED
@@ -134,6 +134,15 @@ css = """
134
  transform: rotate(360deg);
135
  }
136
  }
 
 
 
 
 
 
 
 
 
137
  .gr-form{
138
  flex: 1 1 50%; border-top-right-radius: 0; border-bottom-right-radius: 0;
139
  }
@@ -273,6 +282,12 @@ with block:
273
  options.style.display = ["none", ""].includes(options.style.display) ? "flex" : "none";
274
  }""",
275
  )
 
 
 
 
 
 
276
  gr.HTML(
277
  """
278
  <div class="footer">
@@ -281,7 +296,9 @@ with block:
281
  </div>
282
  <div class="acknowledgments">
283
  <p><h4>LICENSE</h4>
 
284
  <p><h4>Biases and content acknowledgment</h4>
 
285
  </div>
286
  """
287
  )
 
134
  transform: rotate(360deg);
135
  }
136
  }
137
+ #share-btn-container {
138
+ display: flex; padding-left: 0.5rem !important; padding-right: 0.5rem !important; background-color: #000000; justify-content: center; align-items: center; border-radius: 9999px !important; width: 13rem;
139
+ }
140
+ #share-btn {
141
+ all: initial; color: #ffffff;font-weight: 600; cursor:pointer; font-family: 'IBM Plex Sans', sans-serif; margin-left: 0.5rem !important; padding-top: 0.25rem !important; padding-bottom: 0.25rem !important;
142
+ }
143
+ #share-btn * {
144
+ all: unset;
145
+ }
146
  .gr-form{
147
  flex: 1 1 50%; border-top-right-radius: 0; border-bottom-right-radius: 0;
148
  }
 
282
  options.style.display = ["none", ""].includes(options.style.display) ? "flex" : "none";
283
  }""",
284
  )
285
+ share_button.click(
286
+ None,
287
+ [],
288
+ [],
289
+ _js=share_js,
290
+ )
291
  gr.HTML(
292
  """
293
  <div class="footer">
 
296
  </div>
297
  <div class="acknowledgments">
298
  <p><h4>LICENSE</h4>
299
+ 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>
300
  <p><h4>Biases and content acknowledgment</h4>
301
+ 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/runwayml/stable-diffusion-v1-5" style="text-decoration: underline;" target="_blank">model card</a></p>
302
  </div>
303
  """
304
  )