Spaces:
Running
on
Zero
Running
on
Zero
Tanut
commited on
Commit
·
c83cd29
1
Parent(s):
31f7555
Check API
Browse files
app.py
CHANGED
@@ -24,6 +24,7 @@ pipe = StableDiffusionControlNetPipeline.from_pretrained(
|
|
24 |
pipe.to(device)
|
25 |
|
26 |
def generate(prompt, control_image, guidance_scale=7.5, steps=30, seed=0):
|
|
|
27 |
generator = torch.Generator(device=device).manual_seed(int(seed)) if seed else None
|
28 |
img = pipe(
|
29 |
prompt=prompt,
|
|
|
24 |
pipe.to(device)
|
25 |
|
26 |
def generate(prompt, control_image, guidance_scale=7.5, steps=30, seed=0):
|
27 |
+
print("API called:", type(control_image))
|
28 |
generator = torch.Generator(device=device).manual_seed(int(seed)) if seed else None
|
29 |
img = pipe(
|
30 |
prompt=prompt,
|