Spaces:
Running
Running
Update app.py
Browse files
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):
|