Spaces:
Runtime error
Runtime error
artificialguybr
commited on
Commit
•
ccde57b
1
Parent(s):
223f8b4
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,16 @@ with open('loras.json', 'r') as f:
|
|
17 |
# Define the function to run when the button is clicked
|
18 |
def update_selection(selected_state: gr.SelectData):
|
19 |
logging.debug(f"Inside update_selection, selected_state: {selected_state}")
|
20 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
def run_lora(prompt, selected_state, progress=gr.Progress(track_tqdm=True)):
|
23 |
logging.debug(f"Inside run_lora, selected_state: {selected_state}")
|
|
|
17 |
# Define the function to run when the button is clicked
|
18 |
def update_selection(selected_state: gr.SelectData):
|
19 |
logging.debug(f"Inside update_selection, selected_state: {selected_state}")
|
20 |
+
# ... your existing code
|
21 |
+
logging.debug(f"Updated selected_state: {selected_state}")
|
22 |
+
return (
|
23 |
+
updated_text,
|
24 |
+
instance_prompt,
|
25 |
+
gr.update(placeholder=new_placeholder),
|
26 |
+
selected_state,
|
27 |
+
use_with_diffusers,
|
28 |
+
use_with_uis,
|
29 |
+
)
|
30 |
|
31 |
def run_lora(prompt, selected_state, progress=gr.Progress(track_tqdm=True)):
|
32 |
logging.debug(f"Inside run_lora, selected_state: {selected_state}")
|