Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files157 unmodified lines158159160161162161162163164165166167168169170171172173174175176177178179109 unmodified lines289290291278279280281282283292293294295296297157 unmodified lines visibility: hidden}'''
def load_predefined_images(): predefined_images = [
"assets/1.png", "assets/2.png", "assets/3.png", "assets/4.png", "assets/5.png", "assets/6.png", "assets/7.png", "assets/8.png", "assets/9.png",
] return predefined_images
with gr.Blocks(css=css) as demo: gr.Markdown(DESCRIPTIONz)109 unmodified lines )
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.") 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>.") 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.") gr.Markdown("⚠️ users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
with gr.Column(scale=3): gr.Markdown("### Image Gallery") predefined_gallery = gr.Gallery(label="Image Gallery", columns=3, show_label=False, value=load_predefined_images()) if __name__ == "__main__": demo.queue(max_size=30).launch()app.py+20-8