Update app.py
Browse files
app.py
CHANGED
@@ -25,8 +25,8 @@ def set_example_image(example: list) -> dict:
|
|
25 |
|
26 |
def update_step2_components(choice: str) -> tuple[dict, dict]:
|
27 |
return (
|
28 |
-
gr.Dropdown(visible=choice in ["
|
29 |
-
gr.Textbox(visible=choice in ["
|
30 |
)
|
31 |
|
32 |
|
@@ -39,7 +39,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
39 |
with gr.Row():
|
40 |
with gr.Column():
|
41 |
with gr.Row():
|
42 |
-
input_image = gr.Image(label="
|
43 |
with gr.Row():
|
44 |
preprocess_button = gr.Button("Preprocess")
|
45 |
with gr.Column():
|
|
|
25 |
|
26 |
def update_step2_components(choice: str) -> tuple[dict, dict]:
|
27 |
return (
|
28 |
+
gr.Dropdown(visible=choice in ["Kiểu tóc", "Cả hai"]),
|
29 |
+
gr.Textbox(visible=choice in ["Màu tóc", "Cả hai"]),
|
30 |
)
|
31 |
|
32 |
|
|
|
39 |
with gr.Row():
|
40 |
with gr.Column():
|
41 |
with gr.Row():
|
42 |
+
input_image = gr.Image(label="Ảnh chân dung", type="filepath")
|
43 |
with gr.Row():
|
44 |
preprocess_button = gr.Button("Preprocess")
|
45 |
with gr.Column():
|