lulavc commited on
Commit
f0f46c1
·
verified ·
1 Parent(s): 26fd9b8

Remove white box from footer - transparent background

Browse files
Files changed (1) hide show
  1. app.py +12 -4
app.py CHANGED
@@ -321,6 +321,13 @@ h1 {
321
  font-size: 2.2em !important;
322
  margin-bottom: 8px !important;
323
  }
 
 
 
 
 
 
 
324
  """
325
 
326
  with gr.Blocks(title="Z-Image Generation & Transformation Demo", css=css) as demo:
@@ -426,11 +433,12 @@ with gr.Blocks(title="Z-Image Generation & Transformation Demo", css=css) as dem
426
  # Footer
427
  gr.HTML(
428
  """
429
- <div style="text-align: center; width: 100%; opacity: 0.7; font-size: 0.9em; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #e5e7eb;">
430
- <strong>Model:</strong> <a href="https://huggingface.co/Tongyi-MAI/Z-Image-Turbo" target="_blank">Tongyi-MAI/Z-Image-Turbo</a> (Apache 2.0 License) •
431
- <strong>Demo, Design and Improvements by:</strong> <a href="https://huggingface.co/lulavc" target="_blank">@lulavc</a>
432
  </div>
433
- """
 
434
  )
435
 
436
  demo.launch()
 
321
  font-size: 2.2em !important;
322
  margin-bottom: 8px !important;
323
  }
324
+ /* Footer without box */
325
+ .footer-no-box {
326
+ background: transparent !important;
327
+ border: none !important;
328
+ box-shadow: none !important;
329
+ padding: 0 !important;
330
+ }
331
  """
332
 
333
  with gr.Blocks(title="Z-Image Generation & Transformation Demo", css=css) as demo:
 
433
  # Footer
434
  gr.HTML(
435
  """
436
+ <div style="text-align: center; width: 100%; opacity: 0.7; font-size: 0.9em; padding: 1rem 0;">
437
+ <strong>Model:</strong> <a href="https://huggingface.co/Tongyi-MAI/Z-Image-Turbo" target="_blank" style="color: #3b82f6;">Tongyi-MAI/Z-Image-Turbo</a> (Apache 2.0 License) •
438
+ <strong>Demo, Design and Improvements by:</strong> <a href="https://huggingface.co/lulavc" target="_blank" style="color: #3b82f6;">@lulavc</a>
439
  </div>
440
+ """,
441
+ elem_classes="footer-no-box"
442
  )
443
 
444
  demo.launch()