CasperDylan commited on
Commit
969b9fa
·
verified ·
1 Parent(s): d098f3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -45,14 +45,14 @@ def handle_action(action, index):
45
  with gr.Blocks() as demo:
46
  with gr.Row():
47
  with gr.Column():
48
- date = gr.Date(label="日期")
49
- time = gr.Time(label="時間")
50
  title = gr.Textbox(label="事項主題")
51
  details = gr.Textbox(label="事項細節")
52
  location = gr.Textbox(label="地點")
53
  add_button = gr.Button("新增")
54
  with gr.Column():
55
- overview = gr.Textbox(label="To-Do List 總覽", interactive=False)
56
  action = gr.Radio(choices=["刪除", "完成/未完成"], label="動作")
57
  index = gr.Number(label="項目編號")
58
  action_button = gr.Button("執行")
 
45
  with gr.Blocks() as demo:
46
  with gr.Row():
47
  with gr.Column():
48
+ date = gr.Textbox(label="日期 (YYYY-MM-DD)")
49
+ time = gr.Textbox(label="時間 (HH:MM)")
50
  title = gr.Textbox(label="事項主題")
51
  details = gr.Textbox(label="事項細節")
52
  location = gr.Textbox(label="地點")
53
  add_button = gr.Button("新增")
54
  with gr.Column():
55
+ overview = gr.Textbox(label="To-Do List 總覽", interactive=False, lines=20)
56
  action = gr.Radio(choices=["刪除", "完成/未完成"], label="動作")
57
  index = gr.Number(label="項目編號")
58
  action_button = gr.Button("執行")