Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -86,6 +86,19 @@ def gen_fnseed(model_str, prompt, seed=1):
|
|
86 |
return result
|
87 |
|
88 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
with gr.Tab('Toy World'):
|
90 |
txt_input = gr.Textbox(label='Your prompt:', lines=4)
|
91 |
gen_button = gr.Button('Generate up to 6 images in up to 3 minutes total')
|
@@ -124,7 +137,7 @@ with gr.Blocks() as demo:
|
|
124 |
</p>
|
125 |
"""
|
126 |
)
|
127 |
-
with gr.Tab(
|
128 |
txt_inputseed = gr.Textbox(label='Your prompt:', lines=4)
|
129 |
gen_buttonseed = gr.Button('Generate up to 6 images with the same seed in up to 3 minutes total')
|
130 |
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)
|
|
|
86 |
return result
|
87 |
|
88 |
with gr.Blocks() as demo:
|
89 |
+
|
90 |
+
gr.HTML(
|
91 |
+
"""
|
92 |
+
<div style="text-align: center; max-width: 1200px; margin: 0 auto;">
|
93 |
+
<div>
|
94 |
+
<body>
|
95 |
+
<div class="center"><p style="margin-bottom: 10px; color: #000000;"><img src="https://huggingface.co/Yntec/DucHaitenLofi/resolve/main/NEW.webp" alt="NEW!" style="width:32px;height:16px;">A tab where you can use seeds has been added!</p>
|
96 |
+
</div>
|
97 |
+
</body>
|
98 |
+
</div>
|
99 |
+
</div>
|
100 |
+
"""
|
101 |
+
)
|
102 |
with gr.Tab('Toy World'):
|
103 |
txt_input = gr.Textbox(label='Your prompt:', lines=4)
|
104 |
gen_button = gr.Button('Generate up to 6 images in up to 3 minutes total')
|
|
|
137 |
</p>
|
138 |
"""
|
139 |
)
|
140 |
+
with gr.Tab('🌱 Use seeds!'):
|
141 |
txt_inputseed = gr.Textbox(label='Your prompt:', lines=4)
|
142 |
gen_buttonseed = gr.Button('Generate up to 6 images with the same seed in up to 3 minutes total')
|
143 |
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)
|