Update app.py
Browse files
app.py
CHANGED
|
@@ -128,9 +128,9 @@ def reset_ui():
|
|
| 128 |
)
|
| 129 |
|
| 130 |
|
| 131 |
-
with gr.Blocks(title="蛋
|
| 132 |
-
gr.Markdown("# 蛋
|
| 133 |
-
gr.Markdown("陪你
|
| 134 |
|
| 135 |
with gr.Row():
|
| 136 |
egg_count = gr.Slider(minimum=1, maximum=12, step=1, value=2, label="雞蛋數量")
|
|
@@ -147,10 +147,10 @@ with gr.Blocks(title="蛋蛋計時小幫手") as demo:
|
|
| 147 |
end_ts_state = gr.State(0.0)
|
| 148 |
|
| 149 |
status_md = gr.Markdown(_build_status("idle", 2, "Jammy", calculate_cook_seconds(2, "Jammy")))
|
| 150 |
-
countdown_text = gr.Textbox(value=format_mm_ss(calculate_cook_seconds(2, "Jammy")), label="
|
| 151 |
|
| 152 |
with gr.Row():
|
| 153 |
-
btn_start = gr.Button("開始
|
| 154 |
btn_done_boil = gr.Button("水已經滾起", visible=False)
|
| 155 |
btn_done_simmer = gr.Button("已經轉細火", visible=False)
|
| 156 |
btn_start_countdown = gr.Button("已放蛋,開始計時", variant="primary", visible=False)
|
|
|
|
| 128 |
)
|
| 129 |
|
| 130 |
|
| 131 |
+
with gr.Blocks(title="烚蛋計時小幫手") as demo:
|
| 132 |
+
gr.Markdown("# 烚蛋計時小幫手")
|
| 133 |
+
gr.Markdown("陪你烚出新天地,慢慢嚟最緊要快。")
|
| 134 |
|
| 135 |
with gr.Row():
|
| 136 |
egg_count = gr.Slider(minimum=1, maximum=12, step=1, value=2, label="雞蛋數量")
|
|
|
|
| 147 |
end_ts_state = gr.State(0.0)
|
| 148 |
|
| 149 |
status_md = gr.Markdown(_build_status("idle", 2, "Jammy", calculate_cook_seconds(2, "Jammy")))
|
| 150 |
+
countdown_text = gr.Textbox(value=format_mm_ss(calculate_cook_seconds(2, "Jammy")), label="倒數", interactive=False)
|
| 151 |
|
| 152 |
with gr.Row():
|
| 153 |
+
btn_start = gr.Button("由煲水開始", variant="primary", visible=True)
|
| 154 |
btn_done_boil = gr.Button("水已經滾起", visible=False)
|
| 155 |
btn_done_simmer = gr.Button("已經轉細火", visible=False)
|
| 156 |
btn_start_countdown = gr.Button("已放蛋,開始計時", variant="primary", visible=False)
|