victor HF Staff commited on
Commit
9de766c
·
1 Parent(s): 83442ec

Update header with green MCP button

Browse files
Files changed (1) hide show
  1. app.py +7 -15
app.py CHANGED
@@ -441,30 +441,22 @@ init_app()
441
  pipe.transformer.layers._repeated_blocks = ["ZImageTransformerBlock"]
442
  spaces.aoti_blocks_load(pipe.transformer.layers, "zerogpu-aoti/Z-Image", variant="fa3")
443
 
444
- with gr.Blocks(title="Z-Image Demo") as demo:
445
  gr.Markdown(
446
  """<div align="center">
447
 
448
- # Z-Image Generation Demo
449
 
450
- [![GitHub](https://img.shields.io/badge/GitHub-Z--Image-181717?logo=github&logoColor=white)](https://github.com/Tongyi-MAI/Z-Image)
 
 
 
 
451
 
452
  *An Efficient Image Generation Foundation Model with Single-Stream Diffusion Transformer*
453
 
454
  </div>"""
455
  )
456
- gr.HTML(
457
- """<div align="center" style="margin-bottom: 1rem;">
458
- <a href="https://huggingface.co/settings/mcp?add=victor/Z-Image-Turbo" target="_blank"
459
- style="display: inline-block; padding: 10px 20px; background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
460
- color: white; text-decoration: none; border-radius: 8px; font-weight: 600;
461
- box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.2s, box-shadow 0.2s;"
462
- onmouseover="this.style.transform='translateY(-2px)'; this.style.boxShadow='0 6px 12px rgba(0,0,0,0.15)';"
463
- onmouseout="this.style.transform='translateY(0)'; this.style.boxShadow='0 4px 6px rgba(0,0,0,0.1)';">
464
- Use via MCP
465
- </a>
466
- </div>"""
467
- )
468
 
469
  with gr.Row():
470
  with gr.Column(scale=1):
 
441
  pipe.transformer.layers._repeated_blocks = ["ZImageTransformerBlock"]
442
  spaces.aoti_blocks_load(pipe.transformer.layers, "zerogpu-aoti/Z-Image", variant="fa3")
443
 
444
+ with gr.Blocks(title="Z-Image Generation MCP") as demo:
445
  gr.Markdown(
446
  """<div align="center">
447
 
448
+ # Z-Image Generation MCP
449
 
450
+ <a href="https://huggingface.co/settings/mcp?add=victor/Z-Image-Turbo" target="_blank"
451
+ style="display: inline-block; padding: 8px 20px; background: #22c55e;
452
+ color: white; text-decoration: none; border-radius: 9999px; font-weight: 600;">
453
+ Use via MCP
454
+ </a>
455
 
456
  *An Efficient Image Generation Foundation Model with Single-Stream Diffusion Transformer*
457
 
458
  </div>"""
459
  )
 
 
 
 
 
 
 
 
 
 
 
 
460
 
461
  with gr.Row():
462
  with gr.Column(scale=1):