Spaces:
Running
on
Zero
Running
on
Zero
small UI layout improvements
Browse files
app.py
CHANGED
@@ -152,29 +152,30 @@ def create_interface():
|
|
152 |
|
153 |
with gr.Row():
|
154 |
with gr.Column(scale=1):
|
155 |
-
|
|
|
|
|
|
|
|
|
|
|
156 |
demo_lora_names, label="Select built-in LoRA")
|
157 |
-
|
158 |
label="Enter Custom LoRA",
|
159 |
placeholder="LoRA Hugging Face path (e.g., 'username/repo_name')",
|
160 |
info="If you want to use a custom LoRA, enter its Hugging Face repo ID here and built-in LoRA will be Overridden. Leave empty to use built-in LoRAs. [Check the list of FLUX LoRAs](https://huggingface.co/models?other=base_model:adapter:black-forest-labs/FLUX.1-dev)"
|
161 |
)
|
162 |
-
|
163 |
-
placeholder="Enter your prompt here",
|
164 |
-
info="Remember to include the necessary trigger words if you're using a custom LoRA."
|
165 |
-
)
|
166 |
-
image_input = gr.Image(type="pil", label="Upload Image")
|
167 |
with gr.Column(scale=1):
|
168 |
output_image = gr.ImageSlider(label="Generated Image")
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
|
179 |
gr.Examples(
|
180 |
examples=examples,
|
|
|
152 |
|
153 |
with gr.Row():
|
154 |
with gr.Column(scale=1):
|
155 |
+
image_input = gr.Image(type="pil", label="Upload Image")
|
156 |
+
prompt_box = gr.Textbox(label="Prompt",
|
157 |
+
placeholder="Enter your prompt here",
|
158 |
+
info="Remember to include the necessary trigger words if you're using a custom LoRA."
|
159 |
+
)
|
160 |
+
lora_dropdown = gr.Dropdown(
|
161 |
demo_lora_names, label="Select built-in LoRA")
|
162 |
+
custom_repo_box = gr.Textbox(
|
163 |
label="Enter Custom LoRA",
|
164 |
placeholder="LoRA Hugging Face path (e.g., 'username/repo_name')",
|
165 |
info="If you want to use a custom LoRA, enter its Hugging Face repo ID here and built-in LoRA will be Overridden. Leave empty to use built-in LoRAs. [Check the list of FLUX LoRAs](https://huggingface.co/models?other=base_model:adapter:black-forest-labs/FLUX.1-dev)"
|
166 |
)
|
167 |
+
gen_btn = gr.Button("Generate")
|
|
|
|
|
|
|
|
|
168 |
with gr.Column(scale=1):
|
169 |
output_image = gr.ImageSlider(label="Generated Image")
|
170 |
+
with gr.Accordion("Advanced Options", open=False):
|
171 |
+
height_box = gr.Textbox(value="1024", label="Height")
|
172 |
+
width_box = gr.Textbox(value="1024", label="Width")
|
173 |
+
guidance_slider = gr.Slider(
|
174 |
+
0.1, 20, value=3.5, step=0.1, label="Guidance Scale")
|
175 |
+
steps_slider = gr.Slider(
|
176 |
+
1, 50, value=25, step=1, label="Inference Steps")
|
177 |
+
seed_slider = gr.Slider(
|
178 |
+
1, 2_147_483_647, value=42, step=1, label="Seed")
|
179 |
|
180 |
gr.Examples(
|
181 |
examples=examples,
|