Abiru commited on
Commit
af69fa5
1 Parent(s): 7d62036

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -4,6 +4,7 @@ import random
4
  import spaces
5
 
6
  pipe = DiffusionPipeline.from_pretrained("UnfilteredAI/NSFW-gen-v2")
 
7
 
8
  @spaces.GPU
9
  def generate(prompt, negative_prompt, num_inference_steps, guidance_scale, width, height, num_samples):
 
4
  import spaces
5
 
6
  pipe = DiffusionPipeline.from_pretrained("UnfilteredAI/NSFW-gen-v2")
7
+ pipe.to('cuda')
8
 
9
  @spaces.GPU
10
  def generate(prompt, negative_prompt, num_inference_steps, guidance_scale, width, height, num_samples):