Spaces:
Running
on
Zero
Running
on
Zero
Add Title formatting
Browse files
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 |
-
|
425 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
|
|
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)
|