Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from generate_prompts import generate_prompt
|
|
8 |
|
9 |
# Load the model once at the start
|
10 |
print("Loading the Stable Diffusion model...")
|
11 |
-
model = StableDiffusionPipeline.from_pretrained("stabilityai/sdxl-turbo")
|
12 |
print("Model loaded successfully.")
|
13 |
|
14 |
def generate_image(prompt, prompt_name):
|
|
|
8 |
|
9 |
# Load the model once at the start
|
10 |
print("Loading the Stable Diffusion model...")
|
11 |
+
model = StableDiffusionPipeline.from_pretrained("stabilityai/sdxl-turbo", safety_checker=None)
|
12 |
print("Model loaded successfully.")
|
13 |
|
14 |
def generate_image(prompt, prompt_name):
|