Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,8 +38,9 @@ def activate_loras(pipe: FluxFillPipeline, loras_with_weights: list[tuple[LoRA,
|
|
| 38 |
|
| 39 |
def get_loras() -> list[dict]:
|
| 40 |
return loras
|
|
|
|
|
|
|
| 41 |
|
| 42 |
-
|
| 43 |
def deactivate_loras(pipe):
|
| 44 |
print("Unloading all LoRAs...")
|
| 45 |
pipe.unload_lora_weights()
|
|
|
|
| 38 |
|
| 39 |
def get_loras() -> list[dict]:
|
| 40 |
return loras
|
| 41 |
+
gr.api(get_loras, api_name="get_loras")
|
| 42 |
+
|
| 43 |
|
|
|
|
| 44 |
def deactivate_loras(pipe):
|
| 45 |
print("Unloading all LoRAs...")
|
| 46 |
pipe.unload_lora_weights()
|