Yntec commited on
Commit
fac3758
1 Parent(s): a698a47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -5
app.py CHANGED
@@ -81,16 +81,23 @@ def gen_fnseed(model_str, prompt, seed=1):
81
  loop.close()
82
  return result
83
 
84
-
85
-
86
  with gr.Blocks() as demo:
 
 
 
 
 
 
 
87
  with gr.Tab('🤗 Huggingface Diffusion 🤗'):
88
  txt_input = gr.Textbox(label='Your prompt:', lines=4)
89
  gen_button = gr.Button('Generate up to 6 images in up to 3 minutes total')
90
- #stop_button = gr.Button('Stop', variant = 'secondary', interactive = False)
91
- seed = gr.Slider(label="Use a seed to replicate the same image later", info="Max 3999999999", minimum=0, maximum=MAX_SEED, step=1, value=starting_seed)
92
- seed_rand = gr.Button("Randomize Seed 🎲", size="sm", variant="secondary")
93
  seed_rand.click(randomize_seed, None, [seed], queue=False)
 
 
94
  gen_button.click(lambda s: gr.update(interactive = True), None)
95
  gr.HTML(
96
  """
 
81
  loop.close()
82
  return result
83
 
 
 
84
  with gr.Blocks() as demo:
85
+ gr.HTML(
86
+ """
87
+ <div>
88
+ <p> <center>For more than 911 models check out <a href="https://huggingface.co/spaces/Yntec/HuggingfaceDiffusion">HuggingfaceDiffusion</a>!</center>
89
+ </p></div>
90
+ """
91
+ )
92
  with gr.Tab('🤗 Huggingface Diffusion 🤗'):
93
  txt_input = gr.Textbox(label='Your prompt:', lines=4)
94
  gen_button = gr.Button('Generate up to 6 images in up to 3 minutes total')
95
+ with gr.Row():
96
+ seed = gr.Slider(label="Use a seed to replicate the same image later", info="Max 3999999999", minimum=0, maximum=MAX_SEED, step=1, value=starting_seed, scale=3)
97
+ seed_rand = gr.Button("Randomize Seed 🎲", size="sm", variant="secondary", scale=1)
98
  seed_rand.click(randomize_seed, None, [seed], queue=False)
99
+ #stop_button = gr.Button('Stop', variant = 'secondary', interactive = False)
100
+
101
  gen_button.click(lambda s: gr.update(interactive = True), None)
102
  gr.HTML(
103
  """