v3
Browse files
app.py
CHANGED
@@ -55,17 +55,27 @@ def BMI(year, month) -> int:
|
|
55 |
year = gr.Textbox(
|
56 |
label="生年",
|
57 |
info="輸入你的西元出生年份",
|
58 |
-
placeholder="
|
59 |
|
60 |
month = gr.Textbox(
|
61 |
label="生月",
|
62 |
info="輸入你的出生月份",
|
63 |
-
placeholder="
|
64 |
|
65 |
day = gr.Textbox(
|
66 |
label="生日",
|
67 |
info="輸入你的出生日子",
|
68 |
-
placeholder="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
|
70 |
output_bmi = gr.Textbox(
|
71 |
value="",
|
@@ -136,6 +146,8 @@ with gr.Blocks() as demo:
|
|
136 |
year.render() # 顯示年
|
137 |
month.render() # 顯示月
|
138 |
day.render() # 顯示日
|
|
|
|
|
139 |
|
140 |
with gr.Row():
|
141 |
output_bmi.render() # 顯示BMI值結果
|
|
|
55 |
year = gr.Textbox(
|
56 |
label="生年",
|
57 |
info="輸入你的西元出生年份",
|
58 |
+
placeholder="Input your birth year here...")
|
59 |
|
60 |
month = gr.Textbox(
|
61 |
label="生月",
|
62 |
info="輸入你的出生月份",
|
63 |
+
placeholder="Input your birthday month here...",)
|
64 |
|
65 |
day = gr.Textbox(
|
66 |
label="生日",
|
67 |
info="輸入你的出生日子",
|
68 |
+
placeholder="Input your birthday day here...",)
|
69 |
+
|
70 |
+
time = gr.Textbox(
|
71 |
+
label="生時",
|
72 |
+
info="輸入你的出生時間",
|
73 |
+
placeholder="Input your birth time here...",)
|
74 |
+
|
75 |
+
sex = gr.Textbox(
|
76 |
+
label="性別",
|
77 |
+
info="輸入你是男生或女生",
|
78 |
+
placeholder="Input you are male or female here...",)
|
79 |
|
80 |
output_bmi = gr.Textbox(
|
81 |
value="",
|
|
|
146 |
year.render() # 顯示年
|
147 |
month.render() # 顯示月
|
148 |
day.render() # 顯示日
|
149 |
+
time.render() # 顯示時
|
150 |
+
sex.render() # 顯示性別
|
151 |
|
152 |
with gr.Row():
|
153 |
output_bmi.render() # 顯示BMI值結果
|