Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -39,11 +39,14 @@ pipe.load_lora_weights("ostris/ikea-instructions-lora-sdxl", weight_name="ikea_i
|
|
39 |
pipe.load_lora_weights("nerijs/pixel-art-xl", weight_name="pixel-art-xl.safetensors", adapter_name="pixel")
|
40 |
pipe.load_lora_weights('e-n-v-y/envy-junkworld-xl-01', weight_name='EnvyJunkworldXL01.safetensors', adapter_name="junkworld")
|
41 |
|
|
|
|
|
42 |
def activate_ikea_lora():
|
43 |
print("Activating IKEA LoRa")
|
44 |
pipe.disable_lora()
|
45 |
while pipe.get_active_adapters()[0] != "ikea":
|
46 |
pipe.set_adapters("ikea")
|
|
|
47 |
print("IKEA LoRa active!")
|
48 |
|
49 |
def activate_pixel_lora():
|
@@ -51,6 +54,7 @@ def activate_pixel_lora():
|
|
51 |
pipe.disable_lora()
|
52 |
while pipe.get_active_adapters()[0] != "pixel":
|
53 |
pipe.set_adapters("pixel")
|
|
|
54 |
print("PixelArt LoRa active!")
|
55 |
|
56 |
def activate_junkworld_lora():
|
@@ -58,6 +62,7 @@ def activate_junkworld_lora():
|
|
58 |
pipe.disable_lora()
|
59 |
while pipe.get_active_adapters()[0] != "junkworld":
|
60 |
pipe.set_adapters("junkworld")
|
|
|
61 |
print("JunkWorld LoRa active!")
|
62 |
|
63 |
def disable_loras():
|
|
|
39 |
pipe.load_lora_weights("nerijs/pixel-art-xl", weight_name="pixel-art-xl.safetensors", adapter_name="pixel")
|
40 |
pipe.load_lora_weights('e-n-v-y/envy-junkworld-xl-01', weight_name='EnvyJunkworldXL01.safetensors', adapter_name="junkworld")
|
41 |
|
42 |
+
pipe.disable_lora()
|
43 |
+
|
44 |
def activate_ikea_lora():
|
45 |
print("Activating IKEA LoRa")
|
46 |
pipe.disable_lora()
|
47 |
while pipe.get_active_adapters()[0] != "ikea":
|
48 |
pipe.set_adapters("ikea")
|
49 |
+
pipe.enable_lora()
|
50 |
print("IKEA LoRa active!")
|
51 |
|
52 |
def activate_pixel_lora():
|
|
|
54 |
pipe.disable_lora()
|
55 |
while pipe.get_active_adapters()[0] != "pixel":
|
56 |
pipe.set_adapters("pixel")
|
57 |
+
pipe.enable_lora()
|
58 |
print("PixelArt LoRa active!")
|
59 |
|
60 |
def activate_junkworld_lora():
|
|
|
62 |
pipe.disable_lora()
|
63 |
while pipe.get_active_adapters()[0] != "junkworld":
|
64 |
pipe.set_adapters("junkworld")
|
65 |
+
pipe.enable_lora()
|
66 |
print("JunkWorld LoRa active!")
|
67 |
|
68 |
def disable_loras():
|