Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -40,59 +40,16 @@ examples = [
|
|
40 |
]
|
41 |
|
42 |
css = """
|
43 |
-
|
44 |
-
|
45 |
-
max-width: 800px;
|
46 |
-
padding: 20px;
|
47 |
-
border-radius: 10px;
|
48 |
-
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
|
49 |
}
|
50 |
-
|
51 |
-
#title {
|
52 |
-
text-align: center;
|
53 |
-
font-size: 32px;
|
54 |
-
font-weight: bold;
|
55 |
-
margin-bottom: 20px;
|
56 |
-
}
|
57 |
-
|
58 |
-
#prompt {
|
59 |
-
margin-bottom: 20px;
|
60 |
-
}
|
61 |
-
|
62 |
-
#result {
|
63 |
-
margin-bottom: 20px;
|
64 |
-
}
|
65 |
-
|
66 |
-
#advanced-settings {
|
67 |
-
margin-bottom: 20px;
|
68 |
-
}
|
69 |
-
|
70 |
-
#footer {
|
71 |
-
text-align: center;
|
72 |
-
font-size: 14px;
|
73 |
-
color: #888;
|
74 |
-
}
|
75 |
-
"""
|
76 |
-
|
77 |
-
footer = """
|
78 |
-
<div id="footer">
|
79 |
-
<a href="https://www.linkedin.com/in/pejman-ebrahimi-4a60151a7/" target="_blank">LinkedIn</a> |
|
80 |
-
<a href="https://github.com/arad1367" target="_blank">GitHub</a> |
|
81 |
-
<a href="https://arad1367.pythonanywhere.com/" target="_blank">Live demo of my PhD defense</a> |
|
82 |
-
<a href="https://huggingface.co/black-forest-labs/FLUX.1-schnell" target="_blank">black-forest-labs/FLUX.1-schnell</a>
|
83 |
-
<br>
|
84 |
-
Made with 💖 by Pejman Ebrahimi
|
85 |
-
</div>
|
86 |
"""
|
87 |
|
88 |
-
with gr.Blocks(
|
|
|
89 |
|
90 |
with gr.Column(elem_id="col-container"):
|
91 |
-
gr.Markdown("""
|
92 |
-
# FLUX.1 Schnell Marketing Assistant
|
93 |
|
94 |
-
This app uses the FLUX.1 Schnell model to generate high-quality images based on your prompt. Use it to create new logos, social media content, marketing advertisements, and more.
|
95 |
-
""", elem_id="title")
|
96 |
|
97 |
with gr.Row():
|
98 |
prompt = gr.Text(
|
@@ -125,7 +82,7 @@ with gr.Blocks(css=css, theme='gradio/soft') as demo:
|
|
125 |
minimum=256,
|
126 |
maximum=MAX_IMAGE_SIZE,
|
127 |
step=32,
|
128 |
-
value=
|
129 |
)
|
130 |
|
131 |
height = gr.Slider(
|
@@ -133,7 +90,7 @@ with gr.Blocks(css=css, theme='gradio/soft') as demo:
|
|
133 |
minimum=256,
|
134 |
maximum=MAX_IMAGE_SIZE,
|
135 |
step=32,
|
136 |
-
value=
|
137 |
)
|
138 |
|
139 |
with gr.Row():
|
|
|
40 |
]
|
41 |
|
42 |
css = """
|
43 |
+
footer {
|
44 |
+
visibility: hidden;
|
|
|
|
|
|
|
|
|
45 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
"""
|
47 |
|
48 |
+
with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css
|
49 |
+
) as demo:
|
50 |
|
51 |
with gr.Column(elem_id="col-container"):
|
|
|
|
|
52 |
|
|
|
|
|
53 |
|
54 |
with gr.Row():
|
55 |
prompt = gr.Text(
|
|
|
82 |
minimum=256,
|
83 |
maximum=MAX_IMAGE_SIZE,
|
84 |
step=32,
|
85 |
+
value=512,
|
86 |
)
|
87 |
|
88 |
height = gr.Slider(
|
|
|
90 |
minimum=256,
|
91 |
maximum=MAX_IMAGE_SIZE,
|
92 |
step=32,
|
93 |
+
value=512,
|
94 |
)
|
95 |
|
96 |
with gr.Row():
|