Update myapp.py
Browse files
myapp.py
CHANGED
@@ -10,7 +10,7 @@ CORS(myapp) # Enable CORS for all routes
|
|
10 |
|
11 |
# Initialize the Stable Diffusion pipeline using CPU
|
12 |
model_url = "https://huggingface.co/WarriorMama777/OrangeMixs/blob/main/Models/AbyssOrangeMix/AbyssOrangeMix.safetensors"
|
13 |
-
pipeline = StableDiffusionPipeline.from_single_file(model_url, torch_dtype=torch.
|
14 |
pipeline = pipeline.to("cpu") # Set to use CPU
|
15 |
|
16 |
@myapp.route('/')
|
|
|
10 |
|
11 |
# Initialize the Stable Diffusion pipeline using CPU
|
12 |
model_url = "https://huggingface.co/WarriorMama777/OrangeMixs/blob/main/Models/AbyssOrangeMix/AbyssOrangeMix.safetensors"
|
13 |
+
pipeline = StableDiffusionPipeline.from_single_file(model_url, torch_dtype=torch.float32)
|
14 |
pipeline = pipeline.to("cpu") # Set to use CPU
|
15 |
|
16 |
@myapp.route('/')
|