SIUBIU commited on
Commit
6ab2f0d
1 Parent(s): 4b81bf3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,9 +46,9 @@ with gr.Blocks(css="styles.css", theme=gr.themes.Base()) as demo:
46
  text_input7 = gr.Textbox(label="肩宽/cm", min_width=100)
47
  text_input8 = gr.Textbox(label="腿长/cm", min_width=100)
48
  text_input9 = gr.Textbox(label="臂长/cm", min_width=100)
49
- dropdown_options1 = ["", ""]
50
  dropdown_input1 = gr.Dropdown(choices=dropdown_options1, label="性别", min_width=100)
51
- dropdown_input2 = gr.Dropdown(choices=['倒三角形', '矩形', '苹果形', '沙漏型', '胖型'], label="体型分类", min_width=100)
52
  dropdown_input1.change(fn=update_choices, inputs=[dropdown_input1, dropdown_input2], outputs=dropdown_input2)
53
  dropdown_options3 = ["浅色", "中等偏黄色", "中等偏褐色", "深色"]
54
  dropdown_input3 = gr.Dropdown(choices=dropdown_options3, label="肤色", min_width=100)
 
46
  text_input7 = gr.Textbox(label="肩宽/cm", min_width=100)
47
  text_input8 = gr.Textbox(label="腿长/cm", min_width=100)
48
  text_input9 = gr.Textbox(label="臂长/cm", min_width=100)
49
+ dropdown_options1 = ["", ""]
50
  dropdown_input1 = gr.Dropdown(choices=dropdown_options1, label="性别", min_width=100)
51
+ dropdown_input2 = gr.Dropdown(choices=["梨形", "草莓形", "沙漏形", "标准", "苹果形"], label="体型分类", min_width=100)
52
  dropdown_input1.change(fn=update_choices, inputs=[dropdown_input1, dropdown_input2], outputs=dropdown_input2)
53
  dropdown_options3 = ["浅色", "中等偏黄色", "中等偏褐色", "深色"]
54
  dropdown_input3 = gr.Dropdown(choices=dropdown_options3, label="肤色", min_width=100)