Spaces:
Running
on
Zero
Running
on
Zero
Alexander Bagus
commited on
Commit
·
e5cb924
1
Parent(s):
bbb38e8
22
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title: ZIT Controlnet
|
| 3 |
emoji: 🖼
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: red
|
|
@@ -12,8 +12,6 @@ short_description: Supports Canny, HED, Depth, Pose and MLSD
|
|
| 12 |
models:
|
| 13 |
- Tongyi-MAI/Z-Image-Turbo
|
| 14 |
- alibaba-pai/Z-Image-Turbo-Fun-Controlnet-Union
|
| 15 |
-
commands:
|
| 16 |
-
- echo "Starting Space..."
|
| 17 |
---
|
| 18 |
|
| 19 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Z-Image Turbo (ZIT) Controlnet
|
| 3 |
emoji: 🖼
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: red
|
|
|
|
| 12 |
models:
|
| 13 |
- Tongyi-MAI/Z-Image-Turbo
|
| 14 |
- alibaba-pai/Z-Image-Turbo-Fun-Controlnet-Union
|
|
|
|
|
|
|
| 15 |
---
|
| 16 |
|
| 17 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
|
@@ -198,10 +198,10 @@ with gr.Blocks(css=css) as demo:
|
|
| 198 |
minimum=0,
|
| 199 |
maximum=MAX_SEED,
|
| 200 |
step=1,
|
| 201 |
-
value=
|
| 202 |
)
|
| 203 |
|
| 204 |
-
randomize_seed = gr.Checkbox(label="Randomize seed", value=
|
| 205 |
|
| 206 |
with gr.Row():
|
| 207 |
image_scale = gr.Slider(
|
|
@@ -244,9 +244,6 @@ with gr.Blocks(css=css) as demo:
|
|
| 244 |
outputs=[polished_prompt]
|
| 245 |
# outputs=gr.State(), # Pass to the next function, not to UI at this step
|
| 246 |
).then(
|
| 247 |
-
# fn=generate_image,
|
| 248 |
-
# inputs=None, # This will automatically use the previous result
|
| 249 |
-
# outputs=output
|
| 250 |
fn=inference,
|
| 251 |
inputs=[
|
| 252 |
polished_prompt,
|
|
|
|
| 198 |
minimum=0,
|
| 199 |
maximum=MAX_SEED,
|
| 200 |
step=1,
|
| 201 |
+
value=42,
|
| 202 |
)
|
| 203 |
|
| 204 |
+
randomize_seed = gr.Checkbox(label="Randomize seed", value=False)
|
| 205 |
|
| 206 |
with gr.Row():
|
| 207 |
image_scale = gr.Slider(
|
|
|
|
| 244 |
outputs=[polished_prompt]
|
| 245 |
# outputs=gr.State(), # Pass to the next function, not to UI at this step
|
| 246 |
).then(
|
|
|
|
|
|
|
|
|
|
| 247 |
fn=inference,
|
| 248 |
inputs=[
|
| 249 |
polished_prompt,
|