gokaygokay commited on
Commit
e5117b9
1 Parent(s): 64a5a18
Files changed (1) hide show
  1. ui_components.py +5 -1
ui_components.py CHANGED
@@ -136,7 +136,11 @@ def create_interface():
136
  # Call generate_prompt with the correct arguments
137
  result = prompt_generator.generate_prompt(dynamic_seed, *main_args, next_params=next_params)
138
 
139
- return [dynamic_seed] + list(result)
 
 
 
 
140
 
141
  generate_button.click(
142
  generate_prompt_with_dynamic_seed,
 
136
  # Call generate_prompt with the correct arguments
137
  result = prompt_generator.generate_prompt(dynamic_seed, *main_args, next_params=next_params)
138
 
139
+ main_prompt = result[0]
140
+ next_prompts = [v for category in next_params.values() for v in category.values() if v]
141
+ combined_prompt = main_prompt + " " + " ".join(next_prompts)
142
+
143
+ return [dynamic_seed, combined_prompt] + list(result[1:])
144
 
145
  generate_button.click(
146
  generate_prompt_with_dynamic_seed,