Update myapp.py
Browse files
myapp.py
CHANGED
@@ -12,6 +12,7 @@ CORS(myapp) # Enable CORS for all routes
|
|
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('/')
|
17 |
def home():
|
|
|
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 |
+
pipeline.safety_checker = None
|
16 |
|
17 |
@myapp.route('/')
|
18 |
def home():
|