artificialguybr commited on
Commit
3487adc
·
verified ·
1 Parent(s): c51cdbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ headers = {
23
  # Function to generate image using the API
24
  def generate_image(prompt, negative_prompt, sampler, seed, guidance_scale, inference_steps):
25
  if seed is None or seed == 0:
26
- seed = random.randint(11111111, 999999999999999)
27
  payload = {
28
  "prompt": prompt,
29
  "negative_prompt": negative_prompt,
 
23
  # Function to generate image using the API
24
  def generate_image(prompt, negative_prompt, sampler, seed, guidance_scale, inference_steps):
25
  if seed is None or seed == 0:
26
+ seed = random.randint(1, 4294967296)
27
  payload = {
28
  "prompt": prompt,
29
  "negative_prompt": negative_prompt,