Bargerya commited on
Commit
6887924
1 Parent(s): 8f696ab
Files changed (1) hide show
  1. app.py +5 -12
app.py CHANGED
@@ -79,15 +79,9 @@ sex = gr.Textbox(
79
 
80
  output_bmi = gr.Textbox(
81
  value="",
82
- label="BMI 值",
83
- info="顯示BMI 數字",
84
- placeholder="BMI")
85
-
86
- output_state = gr.Textbox(
87
- value="",
88
- label="BMI 結果",
89
- info="診斷",
90
- placeholder="顯示診斷結果")
91
 
92
  advice = gr.Textbox(
93
  label="AI Advice",
@@ -96,7 +90,7 @@ advice = gr.Textbox(
96
  lines=5,)
97
 
98
  btn = gr.Button(
99
- value="計算BMI值",
100
  variant="primary", scale=1)
101
 
102
  btn_advice = gr.Button(
@@ -151,12 +145,11 @@ with gr.Blocks() as demo:
151
 
152
  with gr.Row():
153
  output_bmi.render() # 顯示BMI值結果
154
- output_state.render() # 顯示BMI診斷結果
155
 
156
  btn.render() # 顯示計算BMI值按鈕
157
  btn.click(fn=BMI,
158
  inputs=[year, month],
159
- outputs=[output_bmi,output_state])
160
 
161
  advice.render() # 顯示AI建議結果的文字框
162
 
 
79
 
80
  output_bmi = gr.Textbox(
81
  value="",
82
+ label="你的農曆生日及出生時辰",
83
+ info="這是從西元換算出的農曆生日及出生時辰",
84
+ placeholder="Date & Time")
 
 
 
 
 
 
85
 
86
  advice = gr.Textbox(
87
  label="AI Advice",
 
90
  lines=5,)
91
 
92
  btn = gr.Button(
93
+ value="計算農曆生日及八字時辰",
94
  variant="primary", scale=1)
95
 
96
  btn_advice = gr.Button(
 
145
 
146
  with gr.Row():
147
  output_bmi.render() # 顯示BMI值結果
 
148
 
149
  btn.render() # 顯示計算BMI值按鈕
150
  btn.click(fn=BMI,
151
  inputs=[year, month],
152
+ outputs=[output_bmi])
153
 
154
  advice.render() # 顯示AI建議結果的文字框
155