AYYasaswini commited on
Commit
753597c
·
verified ·
1 Parent(s): f1c67e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -9
app.py CHANGED
@@ -298,15 +298,19 @@ instructions = "Explore creative art generation using Stable Diffusion. Enter a
298
  demo = gr.Interface(generate_image_from_prompt,
299
  inputs = [gr.Textbox(label='Prompt'),
300
  gr.Dropdown(['<gartic-phone>', '<hawaiian shirt>','<gp>','<style-spdmn>','<yvmqznrm>'], label='Style')
301
- ],
302
- outputs = [
303
- gr.Image(label="Stable Diffusion Output"),
304
- ],
305
- title = title,
306
- description = description,
307
- # examples = examples,
308
- # cache_examples=True
309
- )
 
 
 
 
310
 
311
 
312
  demo.launch(debug=True)
 
298
  demo = gr.Interface(generate_image_from_prompt,
299
  inputs = [gr.Textbox(label='Prompt'),
300
  gr.Dropdown(['<gartic-phone>', '<hawaiian shirt>','<gp>','<style-spdmn>','<yvmqznrm>'], label='Style')
301
+ value="<hawaiian shirt>",
302
+ label=styles_label,
303
+ style="width: 100%"
304
+ ),
305
+ ],
306
+ outputs=[
307
+ gr.Gallery(label="Generated Images", show_label=False, elem_id="gallery", columns=[2], rows=[2],
308
+ object_fit="contain", style="max-width: 800px; margin: 20px auto;"),
309
+ ],
310
+ title=title,
311
+ description=instructions,
312
+ theme="compact" # Apply a predefined theme
313
+ )
314
 
315
 
316
  demo.launch(debug=True)