Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -301,7 +301,8 @@ face_list_path = [os.path.join(example_path,"face",face) for face in face_list]
|
|
| 301 |
pose_list = os.listdir(os.path.join(example_path,"pose"))
|
| 302 |
pose_list_path = [os.path.join(example_path,"pose",pose) for pose in pose_list]
|
| 303 |
|
| 304 |
-
|
|
|
|
| 305 |
|
| 306 |
image_blocks = gr.Blocks().queue()
|
| 307 |
with image_blocks as demo:
|
|
@@ -327,6 +328,8 @@ with image_blocks as demo:
|
|
| 327 |
example = gr.Examples(
|
| 328 |
inputs=imgs,
|
| 329 |
examples_per_page=10,
|
|
|
|
|
|
|
| 330 |
examples=face_list_path
|
| 331 |
)
|
| 332 |
with gr.Row():
|
|
@@ -340,6 +343,8 @@ with image_blocks as demo:
|
|
| 340 |
example = gr.Examples(
|
| 341 |
inputs=pose_img,
|
| 342 |
examples_per_page=8,
|
|
|
|
|
|
|
| 343 |
examples=pose_list_path)
|
| 344 |
|
| 345 |
# with gr.Column():
|
|
|
|
| 301 |
pose_list = os.listdir(os.path.join(example_path,"pose"))
|
| 302 |
pose_list_path = [os.path.join(example_path,"pose",pose) for pose in pose_list]
|
| 303 |
|
| 304 |
+
def process_image(image):
|
| 305 |
+
return image
|
| 306 |
|
| 307 |
image_blocks = gr.Blocks().queue()
|
| 308 |
with image_blocks as demo:
|
|
|
|
| 328 |
example = gr.Examples(
|
| 329 |
inputs=imgs,
|
| 330 |
examples_per_page=10,
|
| 331 |
+
fn=process_image,
|
| 332 |
+
outputs=imgs,
|
| 333 |
examples=face_list_path
|
| 334 |
)
|
| 335 |
with gr.Row():
|
|
|
|
| 343 |
example = gr.Examples(
|
| 344 |
inputs=pose_img,
|
| 345 |
examples_per_page=8,
|
| 346 |
+
fn=process_image,
|
| 347 |
+
outputs=pose_img,
|
| 348 |
examples=pose_list_path)
|
| 349 |
|
| 350 |
# with gr.Column():
|