Spaces:
Sleeping
Sleeping
return dropdown
Browse files
app.py
CHANGED
|
@@ -89,10 +89,14 @@ with gr.Blocks(css=css) as demo:
|
|
| 89 |
|
| 90 |
def setup_lora(model_id):
|
| 91 |
if selected_option == "CompVis/stable-diffusion-v1-4":
|
| 92 |
-
return
|
| 93 |
else:
|
| 94 |
-
return
|
| 95 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
|
| 97 |
|
| 98 |
with gr.Row():
|
|
|
|
| 89 |
|
| 90 |
def setup_lora(model_id):
|
| 91 |
if selected_option == "CompVis/stable-diffusion-v1-4":
|
| 92 |
+
return gr.Dropdown(choices=["None", "pepe"], info="Choose lora", visible=True)
|
| 93 |
else:
|
| 94 |
+
return gr.Dropdown(choices=["None", "pepe"], info="Choose lora", visible=False)
|
| 95 |
+
|
| 96 |
+
model_id.change(
|
| 97 |
+
fn=setup_lora,
|
| 98 |
+
inputs=model_id,
|
| 99 |
+
outputs=lora)
|
| 100 |
|
| 101 |
|
| 102 |
with gr.Row():
|