youngtsai commited on
Commit
f3231bf
·
verified ·
1 Parent(s): 48312c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -26,6 +26,11 @@ def toggle_visibility(current_state):
26
  with gr.Blocks() as demo:
27
  gr.Markdown("# AI Notes Assistant")
28
 
 
 
 
 
 
29
  with gr.Row():
30
  with gr.Column(visible=True) as source_column:
31
  gr.Markdown("### 來源選單")
@@ -48,11 +53,6 @@ with gr.Blocks() as demo:
48
  with gr.Tab("其他功能"):
49
  gr.Markdown("此處可以添加更多功能卡片")
50
 
51
- with gr.Row():
52
- toggle_sources = gr.Button("顯示/隱藏 來源選單")
53
- toggle_chat = gr.Button("顯示/隱藏 對話區域")
54
- toggle_features = gr.Button("顯示/隱藏 功能卡片")
55
-
56
  source_visible = gr.State(True)
57
  chat_visible = gr.State(True)
58
  feature_visible = gr.State(True)
 
26
  with gr.Blocks() as demo:
27
  gr.Markdown("# AI Notes Assistant")
28
 
29
+ with gr.Row():
30
+ toggle_sources = gr.Button("顯示/隱藏 來源選單")
31
+ toggle_chat = gr.Button("顯示/隱藏 對話區域")
32
+ toggle_features = gr.Button("顯示/隱藏 功能卡片")
33
+
34
  with gr.Row():
35
  with gr.Column(visible=True) as source_column:
36
  gr.Markdown("### 來源選單")
 
53
  with gr.Tab("其他功能"):
54
  gr.Markdown("此處可以添加更多功能卡片")
55
 
 
 
 
 
 
56
  source_visible = gr.State(True)
57
  chat_visible = gr.State(True)
58
  feature_visible = gr.State(True)