Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -162,7 +162,14 @@ with gr.Blocks(css=css) as demo:
|
|
| 162 |
guidance_scale_input = gr.Slider(minimum=0.0, maximum=10.0, step=0.5, value=3.5, label="Guidance Scale - high noise stage")
|
| 163 |
guidance_scale_2_input = gr.Slider(minimum=0.0, maximum=10.0, step=0.5, value=4, label="Guidance Scale 2 - low noise stage")
|
| 164 |
|
| 165 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
ui_inputs = [
|
| 167 |
prompt_input,
|
| 168 |
negative_prompt_input,
|
|
@@ -170,14 +177,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 170 |
]
|
| 171 |
generate_button.click(fn=generate_image, inputs=ui_inputs, outputs=[img_output, seed_input])
|
| 172 |
|
| 173 |
-
|
| 174 |
-
examples=[
|
| 175 |
-
[
|
| 176 |
-
"Two anthropomorphic cats in comfy boxing gear and bright gloves fight intensely on a spotlighted stage."
|
| 177 |
-
],
|
| 178 |
-
],
|
| 179 |
-
inputs=[prompt_input], outputs=[img_output, seed_input], fn=generate_image, cache_examples="lazy"
|
| 180 |
-
)
|
| 181 |
|
| 182 |
if __name__ == "__main__":
|
| 183 |
demo.queue().launch(mcp_server=True)
|
|
|
|
| 162 |
guidance_scale_input = gr.Slider(minimum=0.0, maximum=10.0, step=0.5, value=3.5, label="Guidance Scale - high noise stage")
|
| 163 |
guidance_scale_2_input = gr.Slider(minimum=0.0, maximum=10.0, step=0.5, value=4, label="Guidance Scale 2 - low noise stage")
|
| 164 |
|
| 165 |
+
gr.Examples(
|
| 166 |
+
examples=[
|
| 167 |
+
[
|
| 168 |
+
"Two anthropomorphic cats in comfy boxing gear and bright gloves fight intensely on a spotlighted stage."
|
| 169 |
+
],
|
| 170 |
+
],
|
| 171 |
+
inputs=[prompt_input], outputs=[img_output, seed_input], fn=generate_image, cache_examples="lazy"
|
| 172 |
+
)
|
| 173 |
ui_inputs = [
|
| 174 |
prompt_input,
|
| 175 |
negative_prompt_input,
|
|
|
|
| 177 |
]
|
| 178 |
generate_button.click(fn=generate_image, inputs=ui_inputs, outputs=[img_output, seed_input])
|
| 179 |
|
| 180 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 181 |
|
| 182 |
if __name__ == "__main__":
|
| 183 |
demo.queue().launch(mcp_server=True)
|