prithivMLmods commited on
Commit
879cb3b
·
verified ·
1 Parent(s): 2e94d15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -8
app.py CHANGED
@@ -158,8 +158,22 @@ footer {
158
  visibility: hidden
159
  }
160
  '''
161
-
162
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163
 
164
  with gr.Blocks(css=css) as demo:
165
  gr.Markdown(DESCRIPTIONz)
@@ -275,11 +289,9 @@ with gr.Blocks(css=css) as demo:
275
  )
276
 
277
 
278
-
279
- 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.")
280
- 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>.")
281
- 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.")
282
- gr.Markdown("⚠️ users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
283
-
284
  if __name__ == "__main__":
285
  demo.queue(max_size=30).launch()
 
158
  visibility: hidden
159
  }
160
  '''
161
+ def load_predefined_images():
162
+
163
+ predefined_images = [
164
+
165
+ "assets/1.png",
166
+ "assets/2.png",
167
+ "assets/3.png",
168
+ "assets/4.png",
169
+ "assets/5.png",
170
+ "assets/6.png",
171
+ "assets/7.png",
172
+ "assets/8.png",
173
+ "assets/9.png",
174
+
175
+ ]
176
+ return predefined_images
177
 
178
  with gr.Blocks(css=css) as demo:
179
  gr.Markdown(DESCRIPTIONz)
 
289
  )
290
 
291
 
292
+ with gr.Column(scale=3):
293
+ gr.Markdown("### Image Gallery")
294
+ predefined_gallery = gr.Gallery(label="Image Gallery", columns=3, show_label=False, value=load_predefined_images())
295
+
 
 
296
  if __name__ == "__main__":
297
  demo.queue(max_size=30).launch()