Spaces:
Runtime error
Runtime error
imported as Image
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ generator = torch.manual_seed(0)
|
|
36 |
# inference function takes prompt, negative prompt and image
|
37 |
def infer(prompt, negative_prompt, image):
|
38 |
# implement your inference function here
|
39 |
-
inp =
|
40 |
|
41 |
cond_input = conditioning_image_transforms(inp)
|
42 |
#cond_input = T.ToPILImage(cond_input)
|
|
|
36 |
# inference function takes prompt, negative prompt and image
|
37 |
def infer(prompt, negative_prompt, image):
|
38 |
# implement your inference function here
|
39 |
+
inp = Image.fromarray(image)
|
40 |
|
41 |
cond_input = conditioning_image_transforms(inp)
|
42 |
#cond_input = T.ToPILImage(cond_input)
|