Spaces:
Runtime error
Runtime error
convert to np array
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ generator = torch.manual_seed(0)
|
|
32 |
def infer(prompt, negative_prompt, image):
|
33 |
# implement your inference function here
|
34 |
|
35 |
-
cond_input = T.ToPILImage(conditioning_image_transforms(image))
|
36 |
|
37 |
output = pipe(
|
38 |
prompt,
|
|
|
32 |
def infer(prompt, negative_prompt, image):
|
33 |
# implement your inference function here
|
34 |
|
35 |
+
cond_input = T.ToPILImage(conditioning_image_transforms(np.array(image)))
|
36 |
|
37 |
output = pipe(
|
38 |
prompt,
|