DigiP-AI commited on
Commit
191385d
·
verified ·
1 Parent(s): 73c25a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -37,9 +37,8 @@ def query(prompt, negative_prompt, task, steps, sampler, cfg_scale, seed, width,
37
  cfg = int(cfg_scale)
38
  steps = int(steps)
39
  seed = int(seed)
40
-
41
- width = 896
42
- height = 1152
43
 
44
  if task == "Playground v2":
45
  ua = UserAgent()
@@ -203,7 +202,7 @@ with gr.Blocks(css=css, theme=theme) as app:
203
  with gr.Row():
204
  prompt = gr.Textbox(placeholder="Enter the image description...", show_label=True, label='Image Prompt ✍️', lines=3, show_copy_button = True)
205
  with gr.Row():
206
- task = gr.Radio(interactive=True, value="Stable Diffusion XL 1.0", show_label=True, label="Model of neural network 🧠 ", choices=['Stable Diffusion XL 1.0', 'Crystal Clear XL',
207
  'Juggernaut XL', 'DreamShaper XL',
208
  'SDXL Niji', 'Cinemax SDXL', 'NightVision XL'])
209
  gr.Examples(
 
37
  cfg = int(cfg_scale)
38
  steps = int(steps)
39
  seed = int(seed)
40
+ width = int(width)
41
+ height = int(height)
 
42
 
43
  if task == "Playground v2":
44
  ua = UserAgent()
 
202
  with gr.Row():
203
  prompt = gr.Textbox(placeholder="Enter the image description...", show_label=True, label='Image Prompt ✍️', lines=3, show_copy_button = True)
204
  with gr.Row():
205
+ task = gr.Radio(interactive=True, value="Stable Diffusion XL 1.0", show_label=True, label="Model of neural network 🤖 ", choices=['Stable Diffusion XL 1.0', 'Crystal Clear XL',
206
  'Juggernaut XL', 'DreamShaper XL',
207
  'SDXL Niji', 'Cinemax SDXL', 'NightVision XL'])
208
  gr.Examples(