artificialguybr commited on
Commit
4649978
·
1 Parent(s): 1b088a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def run_lora(prompt, selected_lora_index):
35
 
36
  # Placeholder for gallery.select function
37
  def update_selection(selected):
38
- return selected, # Return as a tuple
39
 
40
  # Gradio UI
41
  with gr.Blocks(css="custom.css") as app:
 
35
 
36
  # Placeholder for gallery.select function
37
  def update_selection(selected):
38
+ return selected[0], # Unpack the tuple and return the first element
39
 
40
  # Gradio UI
41
  with gr.Blocks(css="custom.css") as app: