Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -261,7 +261,7 @@ ENABLE_CPU_OFFLOAD = os.getenv("ENABLE_CPU_OFFLOAD", "0") == "1"
|
|
261 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
262 |
#Compile
|
263 |
|
264 |
-
|
265 |
"SG161222/RealVisXL_V4.0_Lightning", #(or) use --- SG161222/RealVisXL_V4.0 / SG161222/RealVisXL_V4.0_Lightning --- for better results.
|
266 |
torch_dtype=torch.float16,
|
267 |
use_safetensors=True,
|
|
|
261 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
262 |
#Compile
|
263 |
|
264 |
+
pipe = StableDiffusionXLPipeline.from_pretrained(
|
265 |
"SG161222/RealVisXL_V4.0_Lightning", #(or) use --- SG161222/RealVisXL_V4.0 / SG161222/RealVisXL_V4.0_Lightning --- for better results.
|
266 |
torch_dtype=torch.float16,
|
267 |
use_safetensors=True,
|