TDN-M commited on
Commit
3305314
1 Parent(s): 8e0c145

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 ["hairstyle", "both"]),
29
- gr.Textbox(visible=choice in ["color", "both"]),
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="Input Image", type="filepath")
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():