prithivMLmods commited on
Commit
f97d12d
1 Parent(s): 65b2bab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -5
app.py CHANGED
@@ -19,7 +19,7 @@ import spaces
19
  import torch
20
  from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
21
 
22
- DESCRIPTIONXX = """## STABLE IMAGINE 🎃
23
  """
24
  def save_image(img):
25
  unique_name = str(uuid.uuid4()) + ".png"
@@ -288,10 +288,35 @@ with gr.Blocks(css=css, theme="prithivMLmods/Minecraft-Theme") as demo:
288
  gr.Markdown("### Image Gallery")
289
  predefined_gallery = gr.Gallery(label="Image Gallery", columns=3, show_label=False, value=load_predefined_images())
290
 
291
- gr.Markdown("🎃Models used in the playground [[Lightning]](https://huggingface.co/SG161222/RealVisXL_V4.0_Lightning) & LoRA from [[LoRA]](https://huggingface.co/collections/prithivMLmods/dev-models-667803a6d5ac75b59110e527) for image generation. The specific LoRA in the space that requires appropriate trigger words brings good results. The model is still in the training phase. This is not the final version and may contain artifacts and perform poorly in some cases.")
292
- gr.Markdown("🎃This is the demo space for generating images using Stable Diffusion with quality styles, different LoRA models and types. Try the sample prompts to generate higher quality images. Try the sample prompts for generating higher quality images.<a href='https://huggingface.co/spaces/prithivMLmods/Top-Prompt-Collection' target='_blank'>Try prompts</a>.")
293
- gr.Markdown("🎃Make sure that the prompts passed meet the trigger word conditions and are well-detailed. This space is for educational purposes only; using it productively is meant for your own knowledge.")
294
- gr.Markdown("⚠️ users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
 
 
295
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
296
  if __name__ == "__main__":
297
  demo.queue(max_size=30).launch()
 
19
  import torch
20
  from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
21
 
22
+ DESCRIPTIONXX = """## STABLE IMAGINE
23
  """
24
  def save_image(img):
25
  unique_name = str(uuid.uuid4()) + ".png"
 
288
  gr.Markdown("### Image Gallery")
289
  predefined_gallery = gr.Gallery(label="Image Gallery", columns=3, show_label=False, value=load_predefined_images())
290
 
291
+ #gr.Markdown("🎃Models used in the playground [[Lightning]](https://huggingface.co/SG161222/RealVisXL_V4.0_Lightning) & LoRA from [[LoRA]](https://huggingface.co/collections/prithivMLmods/dev-models-667803a6d5ac75b59110e527) for image generation. The specific LoRA in the space that requires appropriate trigger words brings good results. The model is still in the training phase. This is not the final version and may contain artifacts and perform poorly in some cases.")
292
+ #gr.Markdown("🎃This is the demo space for generating images using Stable Diffusion with quality styles, different LoRA models and types. Try the sample prompts to generate higher quality images. Try the sample prompts for generating higher quality images.<a href='https://huggingface.co/spaces/prithivMLmods/Top-Prompt-Collection' target='_blank'>Try prompts</a>.")
293
+ #gr.Markdown("🎃Make sure that the prompts passed meet the trigger word conditions and are well-detailed. This space is for educational purposes only; using it productively is meant for your own knowledge.")
294
+ #gr.Markdown("⚠️ users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
295
+
296
+ gr.Markdown("**Disclaimer/Note:**")
297
 
298
+ gr.Markdown("""
299
+ <div style='text-align: justify;'>
300
+ 🎃Models used in the playground [[Lightning]](https://huggingface.co/SG161222/RealVisXL_V4.0_Lightning) & LoRA from [[LoRA]](https://huggingface.co/collections/prithivMLmods/dev-models-667803a6d5ac75b59110e527) for image generation. The specific LoRA in the space that requires appropriate trigger words brings good results. The model is still in the training phase. This is not the final version and may contain artifacts and perform poorly in some cases.
301
+ </div>""")
302
+
303
+ gr.Markdown("""
304
+ <div style='text-align: justify;'>
305
+ 🎃This is the demo space for generating images using Stable Diffusion with quality styles, different LoRA models and types. Try the sample prompts to generate higher quality images. <a href='https://huggingface.co/spaces/prithivMLmods/Top-Prompt-Collection' target='_blank'>Try prompts</a>.
306
+ </div>""")
307
+
308
+ gr.Markdown("""
309
+ <div style='text-align: justify;'>
310
+ 🎃Make sure that the prompts passed meet the trigger word conditions and are well-detailed. This space is for educational purposes only; using it productively is meant for your own knowledge.
311
+ </div>""")
312
+
313
+ gr.Markdown("""
314
+ <div style='text-align: justify;'>
315
+ ⚠️ Users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.
316
+ </div>""")
317
+
318
+
319
+
320
+
321
  if __name__ == "__main__":
322
  demo.queue(max_size=30).launch()