Rooni commited on
Commit
3c4df5f
1 Parent(s): e7fd4fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -72,7 +72,7 @@ def query(prompt, model, is_negative=False, steps=30, cfg_scale=7, sampler="DPM+
72
  "is_negative": is_negative,
73
  "steps": steps,
74
  "cfg_scale": cfg_scale,
75
- "seed": seed if seed is not -1 else random.randint(1, 1000000)
76
  }
77
 
78
  image_bytes = requests.post(API_URL, headers=headers, json=payload).content
@@ -98,7 +98,7 @@ with gr.Blocks(css=css) as dalle:
98
  steps = gr.Slider(label="Sampling steps", value=35, minimum=1, maximum=100, step=1)
99
  cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
100
  method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])
101
- seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000, step=1)
102
 
103
 
104
  with gr.Row():
 
72
  "is_negative": is_negative,
73
  "steps": steps,
74
  "cfg_scale": cfg_scale,
75
+ "seed": seed if seed is not -1 else random.randint(1, 1000000000)
76
  }
77
 
78
  image_bytes = requests.post(API_URL, headers=headers, json=payload).content
 
98
  steps = gr.Slider(label="Sampling steps", value=35, minimum=1, maximum=100, step=1)
99
  cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
100
  method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])
101
+ seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
102
 
103
 
104
  with gr.Row():