ultimaxxl commited on
Commit
ed71775
·
1 Parent(s): 92f92f8

Add Title formatting

Browse files
Files changed (1) hide show
  1. app.py +21 -5
app.py CHANGED
@@ -419,10 +419,26 @@ def generate_image(
419
  print(f"Error getting saved image path: {e}")
420
  # Fall back to the expected path
421
  return os.path.join("output", output_filename)
422
-
423
-
424
- with gr.Blocks(css="footer {visibility: hidden}") as app:
425
- gr.Markdown("# 🎨 FLUX Zen Style Depth+Canny")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
426
  gr.Markdown(
427
  "Flux[dev] Redux + Flux[dev] Depth and XLabs Canny based on the space FLUX Style Shaping"
428
  )
@@ -528,4 +544,4 @@ if __name__ == "__main__":
528
  os.makedirs("examples", exist_ok=True)
529
 
530
  # Launch the app
531
- app.launch(share=True)
 
419
  print(f"Error getting saved image path: {e}")
420
  # Fall back to the expected path
421
  return os.path.join("output", output_filename)
422
+ css = """
423
+ footer {
424
+ visibility: hidden;
425
+ }
426
+
427
+ .title {
428
+ font-size: 2.5em;
429
+ background: linear-gradient(109deg, rgba(34,193,195,1) 0%, rgba(67,253,45,1) 100%);
430
+ -webkit-background-clip: text;
431
+ -webkit-text-fill-color: transparent;
432
+ font-weight: bold;
433
+ }
434
+ """
435
+
436
+ with gr.Blocks(css=css) as demo:
437
+ gr.HTML(
438
+ """
439
+ <h1><center>🎨 FLUX <span class="title">Zen Style</span> Depth+Canny</center></h1>
440
+ """
441
+ )
442
  gr.Markdown(
443
  "Flux[dev] Redux + Flux[dev] Depth and XLabs Canny based on the space FLUX Style Shaping"
444
  )
 
544
  os.makedirs("examples", exist_ok=True)
545
 
546
  # Launch the app
547
+ demo.launch(share=True)