3a05chatgpt commited on
Commit
89f9915
·
verified ·
1 Parent(s): d5189ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -2
app.py CHANGED
@@ -159,14 +159,31 @@ def clear_all():
159
  return "", "", ""
160
 
161
  # 創建 Gradio 介面
162
- with gr.Blocks(theme=gr.themes.Soft(), title="PDF 摘要助手") as demo:
 
 
 
 
 
 
 
 
 
 
 
163
  gr.Markdown("""
164
  # 📄 PDF 摘要 & 問答助手
165
 
 
 
166
  這個工具可以幫助您:
167
  - 📋 自動生成 PDF 文檔摘要
168
- - 🤖 基於文檔內容回答問題
169
  - 💡 快速理解長篇文檔的核心內容
 
 
 
 
170
  """)
171
 
172
  with gr.Tab("🔧 設定"):
 
159
  return "", "", ""
160
 
161
  # 創建 Gradio 介面
162
+ with gr.Blocks(
163
+ theme=gr.themes.Soft(),
164
+ title="PDF 摘要助手",
165
+ css="""
166
+ .gradio-container {
167
+ max-width: 1200px !important;
168
+ }
169
+ .tab-nav {
170
+ background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
171
+ }
172
+ """
173
+ ) as demo:
174
  gr.Markdown("""
175
  # 📄 PDF 摘要 & 問答助手
176
 
177
+ 🚀 **歡迎使用 PDF 智能分析工具!**
178
+
179
  這個工具可以幫助您:
180
  - 📋 自動生成 PDF 文檔摘要
181
+ - 🤖 基於文檔內容回答問題
182
  - 💡 快速理解長篇文檔的核心內容
183
+
184
+ ⚠️ **使用前請先在「設定」頁面輸入您的 OpenAI API Key**
185
+
186
+ ---
187
  """)
188
 
189
  with gr.Tab("🔧 設定"):