multimodalart HF staff commited on
Commit
cc664f5
·
1 Parent(s): a8b3a6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -134,9 +134,7 @@ def shuffle_images():
134
  prompt = gr.update(value=f"{trigger_word_1} {trigger_word_2}")
135
  scale = gr.update(value=0.7)
136
 
137
-
138
-
139
- return lora_1_link, title_1, prompt_description_1, repo_id_1, lora_2_link, title_2, prompt_description_2, repo_id_2, prompt, two_shuffled_items, scale, scale
140
 
141
  def save_preferences(lora_1_id, lora_1_scale, lora_2_id, lora_2_scale, prompt, generated_image, thumbs_direction, seed):
142
  image_path = IMAGE_DATASET_DIR / f"{uuid4()}.png"
 
134
  prompt = gr.update(value=f"{trigger_word_1} {trigger_word_2}")
135
  scale = gr.update(value=0.7)
136
 
137
+ return two_shuffled_items[0]['repo'], title_1, prompt_description_1, repo_id_1, two_shuffled_items[1]['repo'], title_2, prompt_description_2, repo_id_2, prompt, two_shuffled_items, scale, scale
 
 
138
 
139
  def save_preferences(lora_1_id, lora_1_scale, lora_2_id, lora_2_scale, prompt, generated_image, thumbs_direction, seed):
140
  image_path = IMAGE_DATASET_DIR / f"{uuid4()}.png"