Spaces:
Running on Zero
Running on Zero
Z User commited on
Commit ·
5a83fc5
1
Parent(s): f037c00
Fix: AttributeError list has no _id - missing style components
Browse files- Added missing style_prompt_gui (Dropdown) and style_json_gui (File) components
- Replaced empty list [] and string '' with proper Gradio components in inputs
- These were removed during improvement but required by generate_pipeline function
app.py
CHANGED
|
@@ -1506,6 +1506,13 @@ with gr.Blocks(elem_id="main", fill_width=True, fill_height=False) as app:
|
|
| 1506 |
with gr.Row():
|
| 1507 |
quality_selector_gui = gr.Dropdown(label="Quality Tags Presets", interactive=True, choices=list(preset_quality.keys()), value="None")
|
| 1508 |
style_selector_gui = gr.Dropdown(label="Style Preset", interactive=True, choices=list(preset_styles.keys()), value="None")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1509 |
sampler_selector_gui = gr.Dropdown(label="Sampler Quick Settings", interactive=True, choices=list(preset_sampler_setting.keys()), value="None")
|
| 1510 |
optimization_gui = gr.Dropdown(label="Optimization for SDXL", choices=list(optimization_list.keys()), value="None", interactive=True)
|
| 1511 |
with gr.Group():
|
|
@@ -2270,7 +2277,7 @@ with gr.Blocks(elem_id="main", fill_width=True, fill_height=False) as app:
|
|
| 2270 |
lora1_gui, lora_scale1_gui, lora2_gui, lora_scale2_gui, lora3_gui, lora_scale3_gui, lora4_gui, lora_scale4_gui, lora5_gui, lora_scale5_gui, lora6_gui, lora_scale6_gui, lora7_gui, lora_scale7_gui,
|
| 2271 |
sampler_gui, schedule_type_gui, schedule_prediction_type_gui, img_height_gui, img_width_gui, model_name_gui, vae_model_gui, task_gui,
|
| 2272 |
image_control_gui, preprocessor_name_gui, preprocess_resolution_gui, image_resolution_gui,
|
| 2273 |
-
|
| 2274 |
low_threshold_gui, high_threshold_gui, value_threshold_gui, distance_threshold_gui,
|
| 2275 |
recolor_gamma_correction_gui, tile_blur_sigma_gui,
|
| 2276 |
controlnet_output_scaling_in_unet_gui, controlnet_start_threshold_gui, controlnet_stop_threshold_gui,
|
|
|
|
| 1506 |
with gr.Row():
|
| 1507 |
quality_selector_gui = gr.Dropdown(label="Quality Tags Presets", interactive=True, choices=list(preset_quality.keys()), value="None")
|
| 1508 |
style_selector_gui = gr.Dropdown(label="Style Preset", interactive=True, choices=list(preset_styles.keys()), value="None")
|
| 1509 |
+
style_prompt_gui = gr.Dropdown(
|
| 1510 |
+
label="Style Prompt",
|
| 1511 |
+
multiselect=True,
|
| 1512 |
+
value=None,
|
| 1513 |
+
interactive=True,
|
| 1514 |
+
)
|
| 1515 |
+
style_json_gui = gr.File(label="Style JSON File")
|
| 1516 |
sampler_selector_gui = gr.Dropdown(label="Sampler Quick Settings", interactive=True, choices=list(preset_sampler_setting.keys()), value="None")
|
| 1517 |
optimization_gui = gr.Dropdown(label="Optimization for SDXL", choices=list(optimization_list.keys()), value="None", interactive=True)
|
| 1518 |
with gr.Group():
|
|
|
|
| 2277 |
lora1_gui, lora_scale1_gui, lora2_gui, lora_scale2_gui, lora3_gui, lora_scale3_gui, lora4_gui, lora_scale4_gui, lora5_gui, lora_scale5_gui, lora6_gui, lora_scale6_gui, lora7_gui, lora_scale7_gui,
|
| 2278 |
sampler_gui, schedule_type_gui, schedule_prediction_type_gui, img_height_gui, img_width_gui, model_name_gui, vae_model_gui, task_gui,
|
| 2279 |
image_control_gui, preprocessor_name_gui, preprocess_resolution_gui, image_resolution_gui,
|
| 2280 |
+
style_prompt_gui, style_json_gui, image_mask_gui, inpaint_strength_gui,
|
| 2281 |
low_threshold_gui, high_threshold_gui, value_threshold_gui, distance_threshold_gui,
|
| 2282 |
recolor_gamma_correction_gui, tile_blur_sigma_gui,
|
| 2283 |
controlnet_output_scaling_in_unet_gui, controlnet_start_threshold_gui, controlnet_stop_threshold_gui,
|