Spaces:
Runtime error
Runtime error
Update utility/image_generator.py
Browse files
utility/image_generator.py
CHANGED
|
@@ -12,7 +12,7 @@ load_dotenv()
|
|
| 12 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 13 |
|
| 14 |
|
| 15 |
-
pipeline = DiffusionPipeline.from_pretrained("
|
| 16 |
pipeline = pipeline.to(device)
|
| 17 |
|
| 18 |
def generate_image_prompts(script):
|
|
|
|
| 12 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 13 |
|
| 14 |
|
| 15 |
+
pipeline = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0")
|
| 16 |
pipeline = pipeline.to(device)
|
| 17 |
|
| 18 |
def generate_image_prompts(script):
|