Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -811,63 +811,16 @@ def generate_image(
|
|
811 |
|
812 |
return img, seed
|
813 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
814 |
def create_demo():
|
815 |
-
with gr.Blocks(theme="
|
816 |
-
|
817 |
-
"""
|
818 |
-
<div style="text-align: center; margin: 0 auto;">
|
819 |
-
<div
|
820 |
-
style="
|
821 |
-
display: inline-flex;
|
822 |
-
align-items: center;
|
823 |
-
gap: 0.8rem;
|
824 |
-
font-size: 1.75rem;
|
825 |
-
"
|
826 |
-
>
|
827 |
-
<svg
|
828 |
-
width="0.65em"
|
829 |
-
height="0.65em"
|
830 |
-
viewBox="0 0 115 115"
|
831 |
-
fill="none"
|
832 |
-
xmlns="http://www.w3.org/2000/svg"
|
833 |
-
>
|
834 |
-
<rect width="23" height="23" fill="white"></rect>
|
835 |
-
<rect y="69" width="23" height="23" fill="white"></rect>
|
836 |
-
<rect x="23" width="23" height="23" fill="#AEAEAE"></rect>
|
837 |
-
<rect x="23" y="69" width="23" height="23" fill="#AEAEAE"></rect>
|
838 |
-
<rect x="46" width="23" height="23" fill="white"></rect>
|
839 |
-
<rect x="46" y="69" width="23" height="23" fill="white"></rect>
|
840 |
-
<rect x="69" width="23" height="23" fill="black"></rect>
|
841 |
-
<rect x="69" y="69" width="23" height="23" fill="black"></rect>
|
842 |
-
<rect x="92" width="23" height="23" fill="#D9D9D9"></rect>
|
843 |
-
<rect x="92" y="69" width="23" height="23" fill="#AEAEAE"></rect>
|
844 |
-
<rect x="115" y="46" width="23" height="23" fill="white"></rect>
|
845 |
-
<rect x="115" y="115" width="23" height="23" fill="white"></rect>
|
846 |
-
<rect x="115" y="69" width="23" height="23" fill="#D9D9D9"></rect>
|
847 |
-
<rect x="92" y="46" width="23" height="23" fill="#AEAEAE"></rect>
|
848 |
-
<rect x="92" y="115" width="23" height="23" fill="#AEAEAE"></rect>
|
849 |
-
<rect x="92" y="69" width="23" height="23" fill="white"></rect>
|
850 |
-
<rect x="69" y="46" width="23" height="23" fill="white"></rect>
|
851 |
-
<rect x="69" y="115" width="23" height="23" fill="white"></rect>
|
852 |
-
<rect x="69" y="69" width="23" height="23" fill="#D9D9D9"></rect>
|
853 |
-
<rect x="46" y="46" width="23" height="23" fill="black"></rect>
|
854 |
-
<rect x="46" y="115" width="23" height="23" fill="black"></rect>
|
855 |
-
<rect x="46" y="69" width="23" height="23" fill="black"></rect>
|
856 |
-
<rect x="23" y="46" width="23" height="23" fill="#D9D9D9"></rect>
|
857 |
-
<rect x="23" y="115" width="23" height="23" fill="#AEAEAE"></rect>
|
858 |
-
<rect x="23" y="69" width="23" height="23" fill="black"></rect>
|
859 |
-
</svg>
|
860 |
-
<h1 style="font-weight: 900; margin-bottom: 7px;margin-top:5px">
|
861 |
-
FLUX.1 dev NF4 Quantized Demo
|
862 |
-
</h1>
|
863 |
-
</div>
|
864 |
-
<p style="margin-bottom: 20px; font-size: 94%; line-height: 23px;">
|
865 |
-
12B param rectified flow transformer guidance-distilled from <a href="https://blackforestlabs.ai/">FLUX.1 [pro]</a>
|
866 |
-
<a href="https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md">[non-commercial license]</a> <a href="https://blackforestlabs.ai/announcing-black-forest-labs/">[blog]</a> <a href="https://huggingface.co/black-forest-labs/FLUX.1-dev">[model]</a>
|
867 |
-
</p>
|
868 |
-
</div>
|
869 |
-
"""
|
870 |
-
)
|
871 |
with gr.Row():
|
872 |
with gr.Column():
|
873 |
prompt = gr.Textbox(label="Prompt", value="a photo of a forest with mist swirling around the tree trunks. The word 'FLUX' is painted over it in big, red brush strokes with visible texture")
|
|
|
811 |
|
812 |
return img, seed
|
813 |
|
814 |
+
css = """
|
815 |
+
footer {
|
816 |
+
visibility: hidden;
|
817 |
+
}
|
818 |
+
"""
|
819 |
+
|
820 |
+
|
821 |
def create_demo():
|
822 |
+
with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as demo:
|
823 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
824 |
with gr.Row():
|
825 |
with gr.Column():
|
826 |
prompt = gr.Textbox(label="Prompt", value="a photo of a forest with mist swirling around the tree trunks. The word 'FLUX' is painted over it in big, red brush strokes with visible texture")
|