Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,6 +87,10 @@ examples = [
|
|
| 87 |
]
|
| 88 |
|
| 89 |
css = """
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
.generate-btn {
|
| 91 |
background: linear-gradient(90deg, #4B79A1 0%, #283E51 100%) !important;
|
| 92 |
border: none !important;
|
|
@@ -102,7 +106,7 @@ with gr.Blocks(css=css) as app:
|
|
| 102 |
gr.HTML("<center><h1>FLUX.1-Dev with LoRA support</h1></center>")
|
| 103 |
with gr.Column(elem_id="app-container"):
|
| 104 |
with gr.Row():
|
| 105 |
-
with gr.Column(elem_id="
|
| 106 |
with gr.Row():
|
| 107 |
text_prompt = gr.Textbox(label="Prompt", placeholder="Enter a prompt here", lines=3, elem_id="prompt-text-input")
|
| 108 |
with gr.Row():
|
|
@@ -122,18 +126,18 @@ with gr.Blocks(css=css) as app:
|
|
| 122 |
with gr.Row():
|
| 123 |
# text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
|
| 124 |
text_button = gr.Button("✨ Generate Image", variant='primary', elem_classes=["generate-btn"])
|
| 125 |
-
with gr.Column():
|
| 126 |
with gr.Row():
|
| 127 |
image_output = gr.Image(type="pil", label="Image Output", elem_id="gallery")
|
| 128 |
with gr.Row():
|
| 129 |
seed_output = gr.Textbox(label="Seed Used", show_copy_button = True)
|
| 130 |
-
|
| 131 |
-
gr.Markdown(article_text)
|
| 132 |
|
| 133 |
-
gr.
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
|
|
|
|
|
|
| 137 |
|
| 138 |
|
| 139 |
text_button.click(query, inputs=[custom_lora, text_prompt, steps, cfg, randomize_seed, seed, width, height], outputs=[image_output,seed_output, seed])
|
|
|
|
| 87 |
]
|
| 88 |
|
| 89 |
css = """
|
| 90 |
+
#col-container {
|
| 91 |
+
margin: 0 auto;
|
| 92 |
+
max-width: 960px;
|
| 93 |
+
}
|
| 94 |
.generate-btn {
|
| 95 |
background: linear-gradient(90deg, #4B79A1 0%, #283E51 100%) !important;
|
| 96 |
border: none !important;
|
|
|
|
| 106 |
gr.HTML("<center><h1>FLUX.1-Dev with LoRA support</h1></center>")
|
| 107 |
with gr.Column(elem_id="app-container"):
|
| 108 |
with gr.Row():
|
| 109 |
+
with gr.Column(elem_id="col-container"):
|
| 110 |
with gr.Row():
|
| 111 |
text_prompt = gr.Textbox(label="Prompt", placeholder="Enter a prompt here", lines=3, elem_id="prompt-text-input")
|
| 112 |
with gr.Row():
|
|
|
|
| 126 |
with gr.Row():
|
| 127 |
# text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
|
| 128 |
text_button = gr.Button("✨ Generate Image", variant='primary', elem_classes=["generate-btn"])
|
| 129 |
+
with gr.Column(elem_id="col-container"):
|
| 130 |
with gr.Row():
|
| 131 |
image_output = gr.Image(type="pil", label="Image Output", elem_id="gallery")
|
| 132 |
with gr.Row():
|
| 133 |
seed_output = gr.Textbox(label="Seed Used", show_copy_button = True)
|
|
|
|
|
|
|
| 134 |
|
| 135 |
+
gr.Markdown(article_text)
|
| 136 |
+
with gr.Row():
|
| 137 |
+
gr.Examples(
|
| 138 |
+
examples = examples,
|
| 139 |
+
inputs = [text_prompt],
|
| 140 |
+
)
|
| 141 |
|
| 142 |
|
| 143 |
text_button.click(query, inputs=[custom_lora, text_prompt, steps, cfg, randomize_seed, seed, width, height], outputs=[image_output,seed_output, seed])
|