Commit
·
ab2226a
1
Parent(s):
fe84b8f
Update app.py
Browse files
app.py
CHANGED
|
@@ -177,30 +177,15 @@ css = """
|
|
| 177 |
"""
|
| 178 |
|
| 179 |
with gr.Blocks(css=css) as demo:
|
| 180 |
-
gr.
|
| 181 |
-
"""
|
| 182 |
-
|
| 183 |
-
<div
|
| 184 |
-
style="
|
| 185 |
-
display: inline-flex;
|
| 186 |
-
align-items: center;
|
| 187 |
-
gap: 0.8rem;
|
| 188 |
-
font-size: 1.75rem;
|
| 189 |
-
"
|
| 190 |
-
>
|
| 191 |
-
<h1 style="font-weight: 900; margin-bottom: 7px;margin-top:5px">
|
| 192 |
-
Open Diffusion 1.0
|
| 193 |
-
</h1>
|
| 194 |
-
</div>
|
| 195 |
-
</div>
|
| 196 |
-
"""
|
| 197 |
)
|
| 198 |
with gr.Group():
|
|
|
|
| 199 |
with gr.Box():
|
| 200 |
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
| 201 |
with gr.Column():
|
| 202 |
-
gallery_output = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery").style(grid=[4], height="auto")
|
| 203 |
-
|
| 204 |
text_prompt = gr.Textbox(show_label=False, placeholder="Enter your prompt", max_lines=1, elem_id="prompt-text-input").style(border=(True, False, True, True), rounded=(True, False, False, True), container=False)
|
| 205 |
negative_prompt = gr.Textbox(show_label=False, placeholder="Enter a negative prompt", max_lines=1, elem_id="negative-prompt-text-input").style(border=(True, False, True, True), rounded=(True, False, False, True), container=False)
|
| 206 |
text_button = gr.Button("Generate").style(margin=False, rounded=(False, True, True, False), full_width=False)
|
|
|
|
| 177 |
"""
|
| 178 |
|
| 179 |
with gr.Blocks(css=css) as demo:
|
| 180 |
+
gr.Markdown(
|
| 181 |
+
f"""<h1><center>Open Diffusion V1 Demo</center></h1>
|
| 182 |
+
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 183 |
)
|
| 184 |
with gr.Group():
|
| 185 |
+
gallery_output = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery").style(grid=[4], height="auto")
|
| 186 |
with gr.Box():
|
| 187 |
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
| 188 |
with gr.Column():
|
|
|
|
|
|
|
| 189 |
text_prompt = gr.Textbox(show_label=False, placeholder="Enter your prompt", max_lines=1, elem_id="prompt-text-input").style(border=(True, False, True, True), rounded=(True, False, False, True), container=False)
|
| 190 |
negative_prompt = gr.Textbox(show_label=False, placeholder="Enter a negative prompt", max_lines=1, elem_id="negative-prompt-text-input").style(border=(True, False, True, True), rounded=(True, False, False, True), container=False)
|
| 191 |
text_button = gr.Button("Generate").style(margin=False, rounded=(False, True, True, False), full_width=False)
|