Yntec commited on
Commit
175b1c0
·
verified ·
1 Parent(s): 2200f32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -84,7 +84,7 @@ def gen_fnseed(model_str, prompt, seed=1):
84
  with gr.Blocks() as demo:
85
  with gr.Tab('🤗 October 2024 is the date this space was launched 🤗'):
86
  txt_input = gr.Textbox(label='Your prompt:', lines=4)
87
- gen_button = gr.Button('Untick the models you will not be using')
88
  with gr.Row():
89
  seed = gr.Slider(label="Use a seed to replicate the same image later (maximum 3999999999)", minimum=0, maximum=MAX_SEED, step=1, value=starting_seed, scale=3)
90
  seed_rand = gr.Button("Randomize Seed 🎲", size="sm", variant="secondary", scale=1)
@@ -113,7 +113,7 @@ with gr.Blocks() as demo:
113
  inputs=[m, txt_input, seed], outputs=[o], concurrency_limit=None, queue=False)
114
  #stop_button.click(lambda s: gr.update(interactive = False), None, stop_button, cancels = [gen_event])
115
  with gr.Accordion('Model selection'):
116
- model_choice = gr.CheckboxGroup(models, label = f'Choose up to {int(num_models)} different models from the {len(models)} available!', value=default_models, interactive=True)
117
  #model_choice = gr.CheckboxGroup(models, label = f'Choose up to {num_models} different models from the 2 available! Untick them to only use one!', value = default_models, multiselect = True, max_choices = num_models, interactive = True, filterable = False)
118
  model_choice.change(update_imgbox, model_choice, output)
119
  model_choice.change(extend_choices, model_choice, current_models)
@@ -121,7 +121,7 @@ with gr.Blocks() as demo:
121
  gr.HTML(
122
  """
123
  <div class="footer">
124
- <p> Based on the <a href="https://huggingface.co/spaces/John6666/hfd_test_nostopbutton">Huggingface NoStopButton</a> Space by John6666, <a href="https://huggingface.co/spaces/derwahnsinn/TestGen">TestGen</a> Space by derwahnsinn, the <a href="https://huggingface.co/spaces/RdnUser77/SpacIO_v1">SpacIO</a> Space by RdnUser77 and Omnibus's Maximum Multiplier! For 6 images with the same model check out the <a href="https://huggingface.co/spaces/Yntec/PrintingPress">Printing Press</a>, for the classic UI with prompt enhancer try <a href="https://huggingface.co/spaces/Yntec/blitz_diffusion">Blitz Diffusion!</a>
125
  </p>
126
  """
127
  )
 
84
  with gr.Blocks() as demo:
85
  with gr.Tab('🤗 October 2024 is the date this space was launched 🤗'):
86
  txt_input = gr.Textbox(label='Your prompt:', lines=4)
87
+ gen_button = gr.Button('Generate up to 9 images in up to 3 minutes total')
88
  with gr.Row():
89
  seed = gr.Slider(label="Use a seed to replicate the same image later (maximum 3999999999)", minimum=0, maximum=MAX_SEED, step=1, value=starting_seed, scale=3)
90
  seed_rand = gr.Button("Randomize Seed 🎲", size="sm", variant="secondary", scale=1)
 
113
  inputs=[m, txt_input, seed], outputs=[o], concurrency_limit=None, queue=False)
114
  #stop_button.click(lambda s: gr.update(interactive = False), None, stop_button, cancels = [gen_event])
115
  with gr.Accordion('Model selection'):
116
+ model_choice = gr.CheckboxGroup(models, label = 'Untick the models you will not be using', value=default_models, interactive=True)
117
  #model_choice = gr.CheckboxGroup(models, label = f'Choose up to {num_models} different models from the 2 available! Untick them to only use one!', value = default_models, multiselect = True, max_choices = num_models, interactive = True, filterable = False)
118
  model_choice.change(update_imgbox, model_choice, output)
119
  model_choice.change(extend_choices, model_choice, current_models)
 
121
  gr.HTML(
122
  """
123
  <div class="footer">
124
+ <p> For a more than a hundred times more models (that's not a typo) check out <a href="https://huggingface.co/spaces/Yntec/HuggingfaceDiffusion">Huggingface Diffusion</a>!</a>
125
  </p>
126
  """
127
  )