Spaces:
Running
on
Zero
Running
on
Zero
rajveeritme
commited on
Commit
•
77142a3
1
Parent(s):
c61aacb
Update app.py
Browse files
app.py
CHANGED
@@ -54,22 +54,64 @@ css = """
|
|
54 |
margin: 0 auto;
|
55 |
max-width: 520px;
|
56 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
"""
|
58 |
|
59 |
-
# Define the dark theme
|
60 |
dark_theme = gr.themes.Default(
|
61 |
primary_hue="blue",
|
62 |
neutral_hue="gray",
|
63 |
spacing_size="md",
|
64 |
font="default",
|
65 |
-
#
|
66 |
-
|
67 |
)
|
68 |
|
69 |
with gr.Blocks(theme=dark_theme, css=css) as demo:
|
70 |
|
71 |
with gr.Column(elem_id="col-container"):
|
72 |
-
gr.Markdown(
|
73 |
12B param rectified flow transformer guidance-distilled from [FLUX.1 [pro]](https://blackforestlabs.ai/)
|
74 |
[[non-commercial license](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md)] [[blog](https://blackforestlabs.ai/announcing-black-forest-labs/)] [[model](https://huggingface.co/black-forest-labs/FLUX.1-dev)]
|
75 |
""")
|
|
|
54 |
margin: 0 auto;
|
55 |
max-width: 520px;
|
56 |
}
|
57 |
+
|
58 |
+
/* Optional: Additional dark mode customizations */
|
59 |
+
body {
|
60 |
+
background-color: #1e1e1e;
|
61 |
+
color: #ffffff;
|
62 |
+
}
|
63 |
+
|
64 |
+
.gradio-container {
|
65 |
+
background-color: #2c2c2c;
|
66 |
+
}
|
67 |
+
|
68 |
+
.gr-button, .gr-slider, .gr-checkbox {
|
69 |
+
background-color: #3a3a3a;
|
70 |
+
color: #ffffff;
|
71 |
+
}
|
72 |
+
|
73 |
+
.markdown {
|
74 |
+
color: #ffffff;
|
75 |
+
}
|
76 |
+
|
77 |
+
.gr-accordion {
|
78 |
+
background-color: #3a3a3a;
|
79 |
+
color: #ffffff;
|
80 |
+
}
|
81 |
+
|
82 |
+
.gr-input, .gr-textbox, .gr-slider {
|
83 |
+
background-color: #3a3a3a;
|
84 |
+
color: #ffffff;
|
85 |
+
}
|
86 |
+
|
87 |
+
.gr-slider .gr-slider-track {
|
88 |
+
background-color: #555555;
|
89 |
+
}
|
90 |
+
|
91 |
+
.gr-slider .gr-slider-thumb {
|
92 |
+
background-color: #ffffff;
|
93 |
+
}
|
94 |
+
|
95 |
+
.gr-button:hover {
|
96 |
+
background-color: #555555;
|
97 |
+
color: #ffffff;
|
98 |
+
}
|
99 |
"""
|
100 |
|
101 |
+
# Define the dark theme correctly using the 'base' parameter
|
102 |
dark_theme = gr.themes.Default(
|
103 |
primary_hue="blue",
|
104 |
neutral_hue="gray",
|
105 |
spacing_size="md",
|
106 |
font="default",
|
107 |
+
# Use 'base' instead of 'mode' to set the theme to dark
|
108 |
+
base="dark"
|
109 |
)
|
110 |
|
111 |
with gr.Blocks(theme=dark_theme, css=css) as demo:
|
112 |
|
113 |
with gr.Column(elem_id="col-container"):
|
114 |
+
gr.Markdown("""# FLUX.1 [dev]
|
115 |
12B param rectified flow transformer guidance-distilled from [FLUX.1 [pro]](https://blackforestlabs.ai/)
|
116 |
[[non-commercial license](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md)] [[blog](https://blackforestlabs.ai/announcing-black-forest-labs/)] [[model](https://huggingface.co/black-forest-labs/FLUX.1-dev)]
|
117 |
""")
|