Spaces:
Sleeping
Sleeping
changed model_name
Browse files
main.py
CHANGED
@@ -26,7 +26,7 @@ def generate_image(prompt, model):
|
|
26 |
modelVersion = modelArray[1]
|
27 |
|
28 |
pipeline = StableDiffusionPipeline.from_pretrained(
|
29 |
-
str(
|
30 |
)
|
31 |
pipeline.scheduler = EulerDiscreteScheduler.from_config(pipeline.scheduler.config)
|
32 |
pipeline = pipeline.to("cuda")
|
|
|
26 |
modelVersion = modelArray[1]
|
27 |
|
28 |
pipeline = StableDiffusionPipeline.from_pretrained(
|
29 |
+
str(modelName), torch_dtype=torch.float16
|
30 |
)
|
31 |
pipeline.scheduler = EulerDiscreteScheduler.from_config(pipeline.scheduler.config)
|
32 |
pipeline = pipeline.to("cuda")
|