Spaces:
Runtime error
Runtime error
Update diffusion_webui/diffusion_models/text2img_app.py
Browse files
diffusion_webui/diffusion_models/text2img_app.py
CHANGED
@@ -32,7 +32,7 @@ class StableDiffusionText2ImageGenerator:
|
|
32 |
|
33 |
def generate_image(
|
34 |
self,
|
35 |
-
|
36 |
prompt: str,
|
37 |
negative_prompt: str,
|
38 |
num_images_per_prompt: int,
|
@@ -44,7 +44,7 @@ class StableDiffusionText2ImageGenerator:
|
|
44 |
seed_generator=0,
|
45 |
):
|
46 |
pipe = self.load_model(
|
47 |
-
|
48 |
scheduler=scheduler,
|
49 |
)
|
50 |
if seed_generator == 0:
|
|
|
32 |
|
33 |
def generate_image(
|
34 |
self,
|
35 |
+
stable_model_path: str,
|
36 |
prompt: str,
|
37 |
negative_prompt: str,
|
38 |
num_images_per_prompt: int,
|
|
|
44 |
seed_generator=0,
|
45 |
):
|
46 |
pipe = self.load_model(
|
47 |
+
stable_model_path=stable_model_path,
|
48 |
scheduler=scheduler,
|
49 |
)
|
50 |
if seed_generator == 0:
|