tsengiii commited on
Commit
e03e141
·
verified ·
1 Parent(s): dfb2496

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -144,7 +144,7 @@ def chat_interface(user_message, chat_history, state):
144
  return updated_history, state, ""
145
 
146
  # 設計 Gradio 介面
147
- with gr.Blocks() as demo:
148
  gr.Markdown("<h1 style='text-align: center;'>勞動法智能諮詢系統</h1>")
149
 
150
  state = gr.State({"vectordb": None, "api_key": None})
@@ -160,7 +160,7 @@ with gr.Blocks() as demo:
160
  api_key_status = gr.Textbox(label="狀態", interactive=False)
161
 
162
  # 上傳 PDF 文件
163
- gr.Markdown("請上傳勞動法相關文檔,讓我協助解決您的職場問題!🤖")
164
  upload = gr.File(
165
  file_count="multiple",
166
  file_types=[".pdf"],
 
144
  return updated_history, state, ""
145
 
146
  # 設計 Gradio 介面
147
+ with gr.Blocks(css="body { background-color: #EBD6D6; }") as demo:
148
  gr.Markdown("<h1 style='text-align: center;'>勞動法智能諮詢系統</h1>")
149
 
150
  state = gr.State({"vectordb": None, "api_key": None})
 
160
  api_key_status = gr.Textbox(label="狀態", interactive=False)
161
 
162
  # 上傳 PDF 文件
163
+ gr.Markdown("<span style='font-size: 1.5em; font-weight: bold;'>請上傳勞動法相關文檔,讓我協助解決您的職場問題!🤖</span>")
164
  upload = gr.File(
165
  file_count="multiple",
166
  file_types=[".pdf"],