Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def load_fn(models):
|
|
28 |
load_fn(models)
|
29 |
|
30 |
|
31 |
-
num_models =
|
32 |
|
33 |
default_models = models[:num_models]
|
34 |
inference_timeout = 600
|
@@ -82,16 +82,9 @@ def gen_fnseed(model_str, prompt, seed=1):
|
|
82 |
return result
|
83 |
|
84 |
with gr.Blocks() as demo:
|
85 |
-
gr.
|
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('
|
95 |
with gr.Row():
|
96 |
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)
|
97 |
seed_rand = gr.Button("Randomize Seed 🎲", size="sm", variant="secondary", scale=1)
|
|
|
28 |
load_fn(models)
|
29 |
|
30 |
|
31 |
+
num_models = 9
|
32 |
|
33 |
default_models = models[:num_models]
|
34 |
inference_timeout = 600
|
|
|
82 |
return result
|
83 |
|
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 don't want to use')
|
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)
|