AlexWortega commited on
Commit
469f1f5
β€’
1 Parent(s): 36ab2ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -34
app.py CHANGED
@@ -147,24 +147,8 @@ examples = [
147
  ]
148
 
149
  with block as demo:
150
- gr.HTML(
151
- """
152
- <div style="text-align: center; max-width: 650px; margin: 0 auto;">
153
- <div
154
- style="
155
- display: inline-flex;
156
- align-items: center;
157
- gap: 0.8rem;
158
- font-size: 1.75rem;
159
- "
160
- >
161
- <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAANeElEQVRYhY1Ye4xc1X3+zjn33Oc8dmdmZ5+zttfrZ/wIDmAgJgkWoTZKW1WQRG1T0aZNG7VSK7XiL1SlNIqaKEpQUlWqkj5CCCmUpECBGMLDDWAwsbF5LTb78u7s7ni9u/O+M/d9T3XuGjsRsslIVzNXd+653+/3+87v932XAEBloSK/QAiBqmlwux2YKQsijGBRDg6KtchBEAYQsUA2lYJCGDzHkTchpgSxENBVjlhVwCMMNpuN/cTke1zX+5SqqHcxpiwICBQLfbjSRz5fueLVK3yGSyNoVWupQAjXtMwwDCPEnCH0/Gx9ZuHzlVNnDrfemrzBjsOBQ9+6G4ypLUJIU1H4b7T+BwEJGQfATR0II5VTDgIa6TEiAyZ5+AcPfOexh39yG6Wk+nufvfPRnbt3zdJaZ3jpsRe/vHzynZ1RpwvEEXipiPpKDdC1duSHQkZvaDpgWb85ICHEkGYYX6ktVLZP/PgpS1NVK+q4oJEIcltGW9NuXfmX++673nddmV7yT/d+9aZUOo20D2wTaVyTHoBmGYjCEFTXIQSBzrg5W5lTVVXF5rEt8GwXWkq/OiDXddcBAYYl4j+jkaBzDx6BGgtQRmETgVNhDbNxG6CAaVmI4zi5LqIIdSrwKmooey5uNUaQEQCxVHBTQ+D7ztjGMd/zPNSqVVIaGxUfmiFd1xNCxXG8GIXhXK7YN5ZOp0B8F5QpeClcwRT1oAgVmryJKYjiCLEETMg6sUWM86GLo90l3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ls5l7/MD1OGfrbjQGFFXF8sQkpp44Ck2OGMZgZDSoKZb8ljpK9hah80SUMSpfKnBoCgUlAgoFOGXQKMeF54+DrjXQm88jcL3EaDLGTrRa7dla9VdILckspWWhkO8IERFJPMNQpQNMan7m6V8gtDugnIJxgqglcPrpMipLNsrLHUycXUaPqiOr6DC5nlglkSxOEgXKGIWqKzAJwfnnfwlOCOxOVw5zab94tidjSht2qWTiIsMZo7MjpZEfLM4v/rn04IqmoLlYwewLr0DXVRApg5iCYM3D8996A+kNBtQsR2etg6gGKDpN+HHZUtGE6PQi0Zmmov7WGSyfncHg3o9I/rmGYX438MPORam9Doip7JKy3jS24W8Cz09FfvAHUsm9fuw1BK02VEtNbLRcnDECwjncig9nQaZdZmE9MBmbFPCyjymUrZNcqlEJklKoATD902eRHR2BZhhvraxVH1pZq66/e3kfUOiHlzUtU9z+gf77gzA8tLa6gnOvnIShKrBUA0G83j8YYVLBJkAEXV9IBngxSGiMQ2U82W7Sor//gkKec01D891ZrM6X66Vd2x6W7wUu+Q8A/w+34pKwK2kanwAAAABJRU5ErkJggg==" />
162
- <h1 style="font-weight: 900; margin-bottom: 7px;">
163
- Kandinskiy2.0 Demo
164
- </h1>
165
- </div>
166
- <p style="margin-bottom: 10px; font-size: 94%">
167
- # Kandinsky 2.0
168
 
169
  [![Framework: PyTorch](https://img.shields.io/badge/Framework-PyTorch-orange.svg)](https://pytorch.org/) [![Huggingface space](https://img.shields.io/badge/πŸ€—-Huggingface-yello.svg)](https://huggingface.co/sberbank-ai/Kandinsky_2.0)
170
 
@@ -183,8 +167,7 @@ These encoders and multilingual training datasets unveil the real multilingual t
183
  In terms of diffusion architecture Kandinsky 2.0 implements UNet with 1.2B parameters.
184
 
185
  **Kandinsky 2.0** architecture overview:
186
- </p>
187
- </div>
188
  """
189
  )
190
  with gr.Group():
@@ -213,18 +196,5 @@ In terms of diffusion architecture Kandinsky 2.0 implements UNet with 1.2B param
213
  text.submit(infer, inputs=[text], outputs=gallery)
214
  btn.click(infer, inputs=[text], outputs=gallery)
215
 
216
- gr.HTML(
217
- """
218
- <div class="footer">
219
- <p>Stable Diffusion model fine-tuned on 56K anime image board images by <a href="https://huggingface.co/hakurei" style="text-decoration: underline;" target="_blank">hakurei</a>
220
- </p>
221
- </div>
222
- <div class="acknowledgments">
223
- <p><h4>LICENSE</h4>
224
- 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>
225
- <p><h4>Biases and content acknowledgment</h4>
226
- 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>
227
- </div>
228
- """
229
- )
230
  demo.queue(max_size=25).launch()
 
147
  ]
148
 
149
  with block as demo:
150
+ gr.Textbox(
151
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
 
153
  [![Framework: PyTorch](https://img.shields.io/badge/Framework-PyTorch-orange.svg)](https://pytorch.org/) [![Huggingface space](https://img.shields.io/badge/πŸ€—-Huggingface-yello.svg)](https://huggingface.co/sberbank-ai/Kandinsky_2.0)
154
 
 
167
  In terms of diffusion architecture Kandinsky 2.0 implements UNet with 1.2B parameters.
168
 
169
  **Kandinsky 2.0** architecture overview:
170
+
 
171
  """
172
  )
173
  with gr.Group():
 
196
  text.submit(infer, inputs=[text], outputs=gallery)
197
  btn.click(infer, inputs=[text], outputs=gallery)
198
 
199
+
 
 
 
 
 
 
 
 
 
 
 
 
 
200
  demo.queue(max_size=25).launch()