Manjushri commited on
Commit
0866be8
·
1 Parent(s): 26d04fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -34,13 +34,8 @@ gr.Interface(fn=genie, inputs=[gr.Textbox(label='What you want the AI to generat
34
  gr.Slider(1, 15, 10, label='Guidance Scale'),
35
  gr.Slider(25, maximum=50, value=25, step=1, label='Number of Iterations'),
36
  gr.Slider(minimum=1, step=1, maximum=999999999999999999, randomize=True),
37
- gr.Accordion('Advanced options', open=False):
38
- with gr.Row():
39
- use_prompt_2 = gr.Checkbox(label='Use prompt 2', value=False),
40
- use_negative_prompt_2 = gr.Checkbox(label='Use negative prompt 2', value=False),
41
- if use_prompt_2 == True prompt_2 = gr.Textbox(label='Embedded Prompt'),
42
- if use_negative_prompt_2 == True negative_prompt_2 = gr.Textbox(label='Embedded Negative Prompt'),
43
- ],
44
  outputs='image',
45
  title="Stable Diffusion XL 1.0 CPU or GPU",
46
  description="SDXL 1.0 CPU or GPU. Currently running on CPU. <br><br><b>WARNING:</b> Extremely Slow. 65s/Iteration. Expect 25-50mins an image for 25-50 iterations respectively. This model is capable of producing NSFW (Softcore) images.",
 
34
  gr.Slider(1, 15, 10, label='Guidance Scale'),
35
  gr.Slider(25, maximum=50, value=25, step=1, label='Number of Iterations'),
36
  gr.Slider(minimum=1, step=1, maximum=999999999999999999, randomize=True),
37
+ gr.Textbox(label='Embedded Prompt'),
38
+ gr.Textbox(label='Embedded Negative Prompt')],
 
 
 
 
 
39
  outputs='image',
40
  title="Stable Diffusion XL 1.0 CPU or GPU",
41
  description="SDXL 1.0 CPU or GPU. Currently running on CPU. <br><br><b>WARNING:</b> Extremely Slow. 65s/Iteration. Expect 25-50mins an image for 25-50 iterations respectively. This model is capable of producing NSFW (Softcore) images.",