adamtobegreat commited on
Commit
a31792e
·
verified ·
1 Parent(s): 008887c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -142,6 +142,14 @@ def chat_fn(message, history):
142
  # =============================================
143
  # 6️⃣ Gradio 介面
144
  # =============================================
 
 
 
 
 
 
 
 
145
  with gr.Blocks(
146
  theme="soft",
147
  css="""
 
142
  # =============================================
143
  # 6️⃣ Gradio 介面
144
  # =============================================
145
+
146
+ # === Logo 圖片處理 ===
147
+ logo_base64 = ""
148
+ if os.path.exists(LOGO_PATH):
149
+ with open(LOGO_PATH, "rb") as f:
150
+ logo_base64 = base64.b64encode(f.read()).decode("utf-8")
151
+
152
+
153
  with gr.Blocks(
154
  theme="soft",
155
  css="""