update UI
Browse files
app.py
CHANGED
|
@@ -785,8 +785,14 @@ def infer_web(person_fp, sketch_fp, style_fp, prompt, steps, seed, category):
|
|
| 785 |
|
| 786 |
|
| 787 |
with gr.Blocks(title="VISTA Demo (HF Spaces)") as demo:
|
| 788 |
-
|
| 789 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 790 |
|
| 791 |
category_toggle = gr.Radio(
|
| 792 |
choices=["Dress", "Upper-body", "Lower-body"],
|
|
@@ -850,7 +856,7 @@ with gr.Blocks(title="VISTA Demo (HF Spaces)") as demo:
|
|
| 850 |
lines=2,
|
| 851 |
)
|
| 852 |
steps_in = gr.Slider(1, 80, value=DEFAULT_STEPS, step=1, label="Steps")
|
| 853 |
-
seed_in = gr.Number(label="Seed (-1=random)", value
|
| 854 |
|
| 855 |
run_btn = gr.Button("Run")
|
| 856 |
out_file = gr.File(label="Download result.png")
|
|
|
|
| 785 |
|
| 786 |
|
| 787 |
with gr.Blocks(title="VISTA Demo (HF Spaces)") as demo:
|
| 788 |
+
# gr.Markdown("첫 실행은 모델 로딩 때문에 시간이 오래 걸릴 수 있습니다.")
|
| 789 |
+
# gr.Markdown("category랑 try-on 하려는 옷 종류를 꼭 맞춰주세요.")
|
| 790 |
+
|
| 791 |
+
gr.Markdown(
|
| 792 |
+
"첫 실행은 모델 로딩 때문에 시간이 오래 걸릴 수 있습니다.<br>"
|
| 793 |
+
"category랑 try-on 하려는 옷 종류를 꼭 맞춰주세요.",
|
| 794 |
+
elem_classes="tight_md",
|
| 795 |
+
)
|
| 796 |
|
| 797 |
category_toggle = gr.Radio(
|
| 798 |
choices=["Dress", "Upper-body", "Lower-body"],
|
|
|
|
| 856 |
lines=2,
|
| 857 |
)
|
| 858 |
steps_in = gr.Slider(1, 80, value=DEFAULT_STEPS, step=1, label="Steps")
|
| 859 |
+
seed_in = gr.Number(label="Seed (-1=random)", value=-1, precision=0)
|
| 860 |
|
| 861 |
run_btn = gr.Button("Run")
|
| 862 |
out_file = gr.File(label="Download result.png")
|