Spaces:
Configuration error
Configuration error
Remove single image example column
Browse files
app.py
CHANGED
|
@@ -767,20 +767,7 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
|
|
| 767 |
download_btn = gr.DownloadButton(label="Download GLB")
|
| 768 |
gr.Markdown("*We are actively working on improving the speed of GLB extraction. Currently, it may take half a minute or more and face count is limited.*")
|
| 769 |
|
| 770 |
-
with gr.Column(scale=1, min_width=172) as
|
| 771 |
-
examples = gr.Examples(
|
| 772 |
-
examples=[
|
| 773 |
-
f'assets/example_image/{image}'
|
| 774 |
-
for image in os.listdir("assets/example_image")
|
| 775 |
-
],
|
| 776 |
-
inputs=[image_prompt],
|
| 777 |
-
fn=preprocess_image,
|
| 778 |
-
outputs=[image_prompt],
|
| 779 |
-
run_on_click=True,
|
| 780 |
-
examples_per_page=18,
|
| 781 |
-
)
|
| 782 |
-
|
| 783 |
-
with gr.Column(visible=True) as multiimage_example:
|
| 784 |
examples_multi = gr.Examples(
|
| 785 |
examples=prepare_multi_example(),
|
| 786 |
label="Multi Image Examples",
|
|
@@ -800,12 +787,12 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
|
|
| 800 |
demo.unload(end_session)
|
| 801 |
|
| 802 |
single_image_input_tab.select(
|
| 803 |
-
lambda:
|
| 804 |
-
outputs=[is_multiimage
|
| 805 |
)
|
| 806 |
multiimage_input_tab.select(
|
| 807 |
-
lambda:
|
| 808 |
-
outputs=[is_multiimage
|
| 809 |
)
|
| 810 |
|
| 811 |
image_prompt.upload(
|
|
|
|
| 767 |
download_btn = gr.DownloadButton(label="Download GLB")
|
| 768 |
gr.Markdown("*We are actively working on improving the speed of GLB extraction. Currently, it may take half a minute or more and face count is limited.*")
|
| 769 |
|
| 770 |
+
with gr.Column(scale=1, min_width=172) as multiimage_example:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 771 |
examples_multi = gr.Examples(
|
| 772 |
examples=prepare_multi_example(),
|
| 773 |
label="Multi Image Examples",
|
|
|
|
| 787 |
demo.unload(end_session)
|
| 788 |
|
| 789 |
single_image_input_tab.select(
|
| 790 |
+
lambda: False,
|
| 791 |
+
outputs=[is_multiimage]
|
| 792 |
)
|
| 793 |
multiimage_input_tab.select(
|
| 794 |
+
lambda: True,
|
| 795 |
+
outputs=[is_multiimage]
|
| 796 |
)
|
| 797 |
|
| 798 |
image_prompt.upload(
|