Spaces:
Runtime error
Runtime error
Commit ·
bb53117
1
Parent(s): 470a7ca
Enable CPU prompts
Browse files- inference.py +2 -2
inference.py
CHANGED
|
@@ -78,8 +78,8 @@ class InferencePipeline:
|
|
| 78 |
n_steps: int,
|
| 79 |
guidance_scale: float,
|
| 80 |
) -> PIL.Image.Image:
|
| 81 |
-
if not torch.cuda.is_available():
|
| 82 |
-
|
| 83 |
|
| 84 |
self.load_pipe(lora_model_id)
|
| 85 |
|
|
|
|
| 78 |
n_steps: int,
|
| 79 |
guidance_scale: float,
|
| 80 |
) -> PIL.Image.Image:
|
| 81 |
+
#if not torch.cuda.is_available():
|
| 82 |
+
# raise gr.Error('CUDA is not available.')
|
| 83 |
|
| 84 |
self.load_pipe(lora_model_id)
|
| 85 |
|