lixiang46 commited on
Commit
3f2792e
·
1 Parent(s): 9180545
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -46,11 +46,11 @@ def infer(prompt,
46
  if randomize_seed:
47
  seed = random.randint(0, MAX_SEED)
48
  generator = torch.Generator().manual_seed(seed)
49
-
50
  result = pipe(
51
  prompt = prompt,
52
- image = image,
53
- # mask_image = mask_image,
54
  height=height,
55
  width=width,
56
  guidance_scale = guidance_scale,
 
46
  if randomize_seed:
47
  seed = random.randint(0, MAX_SEED)
48
  generator = torch.Generator().manual_seed(seed)
49
+ print(type(image))
50
  result = pipe(
51
  prompt = prompt,
52
+ image = image['image'],
53
+ mask_image = image['mask'],
54
  height=height,
55
  width=width,
56
  guidance_scale = guidance_scale,