Update app.py
Browse files
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"],
|