cwadayi commited on
Commit
db91bf7
·
verified ·
1 Parent(s): 536a9af

Update ui/layouts.py

Browse files
Files changed (1) hide show
  1. ui/layouts.py +10 -6
ui/layouts.py CHANGED
@@ -96,6 +96,7 @@ def create_ui(visit_count_html: str, theme: gr.Theme):
96
  seismo_plot_output = gr.Plot(label="震波圖輸出")
97
  seismo_console_output = gr.Textbox(label="執行結果 / 錯誤訊息", lines=8, interactive=False)
98
 
 
99
  with gr.TabItem("🤖 AI 課程助教"):
100
  with gr.Group():
101
  gr.Markdown("### 🤖 AI 課程助教 (知識庫 & 即時資訊強化版)")
@@ -109,11 +110,14 @@ def create_ui(visit_count_html: str, theme: gr.Theme):
109
 
110
  ---
111
 
112
- #### ⚡ **即時資訊查詢**
113
- 我還能幫您查詢最新的動態資訊,試著問我:
114
- - **📰 今日新聞**:`「今天有什麼重要新聞?」`
115
- - **🚨 地震報告**:`「最新的 CWA 顯著地震報告」` `「最近全球有哪些大地震?」`
116
- - **📢 災害預警**:`「現在有地震預警嗎?」`
 
 
 
117
 
118
  ---
119
 
@@ -123,7 +127,7 @@ def create_ui(visit_count_html: str, theme: gr.Theme):
123
  """)
124
 
125
  custom_textbox = gr.Textbox(
126
- placeholder="對課程有什麼問題嗎?或查詢即時資訊...",
127
  show_label=False,
128
  container=False,
129
  )
 
96
  seismo_plot_output = gr.Plot(label="震波圖輸出")
97
  seismo_console_output = gr.Textbox(label="執行結果 / 錯誤訊息", lines=8, interactive=False)
98
 
99
+ # --- ✨ 以下是修改後的 AI 助教說明 ---
100
  with gr.TabItem("🤖 AI 課程助教"):
101
  with gr.Group():
102
  gr.Markdown("### 🤖 AI 課程助教 (知識庫 & 即時資訊強化版)")
 
110
 
111
  ---
112
 
113
+ #### ⚡ **即時資訊查詢 (可直接輸入 `#數字` 快捷指令)**
114
+
115
+ #1. **今日新聞** (或輸入 `今天有什麼重要新聞?`)
116
+ #2. **CWA 顯著地震報告** (或輸入 `最新的 CWA 顯著地震報告`)
117
+ #3. **CWA 地震預警** (或輸入 `現在有地震預警嗎?`)
118
+ #4. **全球大地震** (或輸入 `最近全球有哪些大地震?`)
119
+ #5. **PWS 發布情形** (或輸入 `pws info`)
120
+ #6. **PWS 地震警報** (或輸入 `最新的 pws 地震警報`)
121
 
122
  ---
123
 
 
127
  """)
128
 
129
  custom_textbox = gr.Textbox(
130
+ placeholder="對課程有什麼問題嗎?或輸入 #1、#2... 查詢即時資訊",
131
  show_label=False,
132
  container=False,
133
  )