Geek7 commited on
Commit
b31139a
1 Parent(s): aa46979

Update myapp.py

Browse files
Files changed (1) hide show
  1. myapp.py +1 -0
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():