Update app.py
Browse files61 unmodified lines6263646566676869707172737475767778798061 unmodified linespipe.load_lora_weights("RalFinger/origami-style-sdxl-lora", weight_name="ral-orgmi-sdxl.safetensors", adapter_name="origami")pipe.set_adapters(["origami"], adapter_weights=[2])elif style=="3D":pipe.load_lora_weights("artificialguybr/3DRedmond-V1", weight_name="3DRedmond-3DRenderStyle-3DRenderAF.safetensors", adapter_name="dalle2")pipe.load_lora_weights("goofyai/3d_render_style_xl", weight_name="3d_render_style_xl.safetensors", adapter_name="dalle1")pipe.set_adapters(["dalle2","dalle1"], adapter_weights=[1.1, 0.8])elif style=="PixelART":pipe.load_lora_weights("artificialguybr/PixelArtRedmond", weight_name="PixelArtRedmond-Lite64.safetensors", adapter_name="lora")pipe.load_lora_weights("nerijs/pixel-art-xl", weight_name="pixel-art-xl.safetensors", adapter_name="pixel")pipe.set_adapters(["lora", "pixel"], adapter_weights=[1.0, 1.2])elif style=="Logo":pipe.load_lora_weights("artificialguybr/StickersRedmond", weight_name="StickersRedmond.safetensors", adapter_name="lora")pipe.load_lora_weights("artificialguybr/LogoRedmond-LogoLoraForSDXL", weight_name="LogoRedmond_LogoRedAF.safetensors", adapter_name="pixel")pipe.set_adapters(["lora", "pixel"], adapter_weights=[0.5, 1.2])else:pipe.load_lora_weights()pipe.to("cuda")seed = int(randomize_seed_fn(seed, randomize_seed))61 unmodified lines626364656667686970717273747576777861 unmodified linespipe.load_lora_weights("RalFinger/origami-style-sdxl-lora", weight_name="ral-orgmi-sdxl.safetensors", adapter_name="origami")pipe.set_adapters(["origami"], adapter_weights=[2])elif style=="3D":pipe.load_lora_weights("artificialguybr/3DRedmond-V1", weight_name="3DRedmond-3DRenderStyle-3DRenderAF.safetensors", adapter_name="3d")pipe.set_adapters(["3d"])elif style=="PixelART":pipe.load_lora_weights("artificialguybr/PixelArtRedmond", weight_name="PixelArtRedmond-Lite64.safetensors", adapter_name="lora")pipe.load_lora_weights("nerijs/pixel-art-xl", weight_name="pixel-art-xl.safetensors", adapter_name="pixel")pipe.set_adapters(["lora", "pixel"], adapter_weights=[1.0, 1.2])elif style=="Logo":pipe.load_lora_weights("artificialguybr/LogoRedmond-LogoLoraForSDXL", weight_name="LogoRedmond_LogoRedAF.safetensors", adapter_name="logo")pipe.set_adapters(["logo"])else:pipe.set_adapters(["default"])pipe.to("cuda")seed = int(randomize_seed_fn(seed, randomize_seed))
app.py+5-7