Abinivesh commited on
Commit
1a2b6b0
·
verified ·
1 Parent(s): 76e7d38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -34,6 +34,7 @@ print("Models loaded successfully.")
34
  num_models = 6
35
  starting_seed = randint(1941, 2024)
36
  MAX_SEED = 3999999999
 
37
  inference_timeout = 600
38
 
39
  def extend_choices(choices):
@@ -80,7 +81,7 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme") as demo:
80
  with gr.Tab('Compare-6'):
81
  txt_input = gr.Textbox(label='Your prompt:', lines=4)
82
  gen_button = gr.Button('Generate up to 6 images')
83
- seed = gr.Slider("Seed (0 to MAX)", minimum=0, maximum=MAX_SEED, value=starting_seed)
84
  seed_rand = gr.Button("Randomize Seed 🎲")
85
 
86
  seed_rand.click(randomize_seed, None, [seed], queue=False)
 
34
  num_models = 6
35
  starting_seed = randint(1941, 2024)
36
  MAX_SEED = 3999999999
37
+ MAX_SEED = int(MAX_SEED)
38
  inference_timeout = 600
39
 
40
  def extend_choices(choices):
 
81
  with gr.Tab('Compare-6'):
82
  txt_input = gr.Textbox(label='Your prompt:', lines=4)
83
  gen_button = gr.Button('Generate up to 6 images')
84
+ seed = gr.Slider(label="Seed (0 to MAX)", minimum=0, maximum=MAX_SEED, value=starting_seed)
85
  seed_rand = gr.Button("Randomize Seed 🎲")
86
 
87
  seed_rand.click(randomize_seed, None, [seed], queue=False)