feishen29 commited on
Commit
910d3ac
1 Parent(s): 0132256

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -307,6 +307,9 @@ pose_list_path = [os.path.join(example_path, "pose", 'pose', pose) for pose in p
307
 
308
  ##default human
309
 
 
 
 
310
 
311
  image_blocks = gr.Blocks().queue()
312
  with image_blocks as demo:
@@ -332,6 +335,8 @@ with image_blocks as demo:
332
  example = gr.Examples(
333
  inputs=imgs,
334
  examples_per_page=10,
 
 
335
  examples=face_list_path
336
  )
337
  with gr.Row():
@@ -345,6 +350,8 @@ with image_blocks as demo:
345
  example = gr.Examples(
346
  inputs=pose_img,
347
  examples_per_page=8,
 
 
348
  examples=pose_list_path)
349
 
350
  # with gr.Column():
 
307
 
308
  ##default human
309
 
310
+ def process_image(image):
311
+
312
+ return image
313
 
314
  image_blocks = gr.Blocks().queue()
315
  with image_blocks as demo:
 
335
  example = gr.Examples(
336
  inputs=imgs,
337
  examples_per_page=10,
338
+ fn=process_image,
339
+ outputs=imgs,
340
  examples=face_list_path
341
  )
342
  with gr.Row():
 
350
  example = gr.Examples(
351
  inputs=pose_img,
352
  examples_per_page=8,
353
+ fn=process_image,
354
+ outputs=pose_img,
355
  examples=pose_list_path)
356
 
357
  # with gr.Column():