Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -45,9 +45,7 @@ def resize_image(input_path, output_path, target_height):
|
|
45 |
|
46 |
@spaces.GPU(duration=90)
|
47 |
def infer(image_in, prompt, inference_steps, guidance_scale, control_weight, progress=gr.Progress(track_tqdm=True)):
|
48 |
-
|
49 |
-
# pipe.enable_model_cpu_offload()
|
50 |
-
pipe.to("cuda")
|
51 |
|
52 |
n_prompt = 'NSFW, nude, naked, porn, ugly'
|
53 |
|
@@ -64,7 +62,7 @@ def infer(image_in, prompt, inference_steps, guidance_scale, control_weight, pro
|
|
64 |
# infer
|
65 |
image = pipe(
|
66 |
prompt=prompt,
|
67 |
-
negative_prompt=n_prompt,
|
68 |
control_image=control_image,
|
69 |
controlnet_conditioning_scale=control_weight,
|
70 |
num_inference_steps=inference_steps,
|
|
|
45 |
|
46 |
@spaces.GPU(duration=90)
|
47 |
def infer(image_in, prompt, inference_steps, guidance_scale, control_weight, progress=gr.Progress(track_tqdm=True)):
|
48 |
+
|
|
|
|
|
49 |
|
50 |
n_prompt = 'NSFW, nude, naked, porn, ugly'
|
51 |
|
|
|
62 |
# infer
|
63 |
image = pipe(
|
64 |
prompt=prompt,
|
65 |
+
#negative_prompt=n_prompt,
|
66 |
control_image=control_image,
|
67 |
controlnet_conditioning_scale=control_weight,
|
68 |
num_inference_steps=inference_steps,
|