Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -133,8 +133,7 @@ Now, use this detailed instruction prompt to generate the decomposed sub-prompts
|
|
| 133 |
|
| 134 |
def init_pipeline():
|
| 135 |
device = torch.device('cuda:0') if torch.cuda.is_available() else torch.device('cpu')
|
| 136 |
-
pipe = ProT2IPipeline.from_pretrained("SG161222/RealVisXL_V4.0", use_safetensors=True, variant='fp16').to(torch.float16)
|
| 137 |
-
pipe.enable_model_cpu_offload()
|
| 138 |
return pipe, device
|
| 139 |
|
| 140 |
def parse_sub_prompts(text):
|
|
|
|
| 133 |
|
| 134 |
def init_pipeline():
|
| 135 |
device = torch.device('cuda:0') if torch.cuda.is_available() else torch.device('cpu')
|
| 136 |
+
pipe = ProT2IPipeline.from_pretrained("SG161222/RealVisXL_V4.0", use_safetensors=True, variant='fp16').to(torch.float16).to(device)
|
|
|
|
| 137 |
return pipe, device
|
| 138 |
|
| 139 |
def parse_sub_prompts(text):
|