Update app.py
Browse files
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('
|
| 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 =
|
| 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>
|
| 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 |
)
|