yizhangliu commited on
Commit
5a166e2
1 Parent(s): 9a9b367

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -190,7 +190,9 @@ def read_content(file_path: str) -> str:
190
 
191
  def predict(dict, prompt=""):
192
  init_image = dict["image"] # .convert("RGB") #.resize((512, 512))
193
- print(init_image)
 
 
194
  mask = dict["mask"] # .convert("RGB") #.resize((512, 512))
195
  output = process(init_image, mask)
196
  # output = pipe(prompt = prompt, image=init_image, mask_image=mask,guidance_scale=7.5)
@@ -237,7 +239,7 @@ css = '''
237
  }
238
  '''
239
 
240
- print(f'liuyz_100_here_')
241
 
242
  image_blocks = gr.Blocks(css=css)
243
  with image_blocks as demo:
 
190
 
191
  def predict(dict, prompt=""):
192
  init_image = dict["image"] # .convert("RGB") #.resize((512, 512))
193
+ print(f'liuyz_1_', init_image)
194
+ print(f'liuyz_2_', init_image.convert("RGB"))
195
+ print(f'liuyz_3_', init_image.convert("RGB").resize((512, 512)))
196
  mask = dict["mask"] # .convert("RGB") #.resize((512, 512))
197
  output = process(init_image, mask)
198
  # output = pipe(prompt = prompt, image=init_image, mask_image=mask,guidance_scale=7.5)
 
239
  }
240
  '''
241
 
242
+ print(f'liuyz_200_here_')
243
 
244
  image_blocks = gr.Blocks(css=css)
245
  with image_blocks as demo: