X-HighVoltage-X commited on
Commit
12d4d12
·
verified ·
1 Parent(s): 19a6e63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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()