wensjheng commited on
Commit
d05453c
·
verified ·
1 Parent(s): 6086aa8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -49
app.py CHANGED
@@ -37,55 +37,7 @@ def call_gemini(message):
37
  else:
38
  return f"[API 錯誤 {response.status_code}]: {response.text}"
39
 
40
- with gr.Blocks(title="氫鬆聊 - 專屬於您的健康諮詢夥伴", css="""
41
- body, .gradio-container {
42
- background-color: #d3eaf7 !important;
43
- color: #1c5179 !important;
44
- }
45
-
46
- .gr-button, button {
47
- background-color: #1c5179 !important;
48
- color: white !important;
49
- font-weight: bold;
50
- border-radius: 12px !important;
51
- }
52
-
53
- textarea, .gr-textbox, .gr-input, input, select {
54
- background-color: #ffffff !important;
55
- color: #1c5179 !important;
56
- border: 1px solid #a6cfe2 !important;
57
- }
58
-
59
- textarea::placeholder, input::placeholder {
60
- color: #88aabb !important;
61
- }
62
-
63
- label, .gr-label, .block-title, .svelte-1ipelgc {
64
- color: #1c5179 !important;
65
- }
66
-
67
- /* 對話區完整修正:包含 Markdown 格式與 link、列表等 */
68
- .gr-chatbot, .gr-chatbot * {
69
- background-color: #f0faff !important;
70
- color: #1c5179 !important;
71
- font-weight: normal;
72
- }
73
-
74
- .gr-chatbot p,
75
- .gr-chatbot li,
76
- .gr-chatbot strong,
77
- .gr-chatbot em,
78
- .gr-chatbot a,
79
- .gr-chatbot code {
80
- color: #1c5179 !important;
81
- background-color: #f0faff !important;
82
- }
83
-
84
- .gr-markdown h1, h2, h3, h4, h5, h6, p {
85
- color: #1c5179 !important;
86
- }
87
-
88
- """) as demo:
89
  gr.HTML(INTRO_TEXT)
90
  chatbot = gr.Chatbot(height=400, label="對話區")
91
  msg = gr.Textbox(label="請輸入您的問題", placeholder="例如:我正在接受__治療,可以吃___?")
 
37
  else:
38
  return f"[API 錯誤 {response.status_code}]: {response.text}"
39
 
40
+ with gr.Blocks(title="氫鬆聊 - 專屬於您的健康諮詢夥伴") as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  gr.HTML(INTRO_TEXT)
42
  chatbot = gr.Chatbot(height=400, label="對話區")
43
  msg = gr.Textbox(label="請輸入您的問題", placeholder="例如:我正在接受__治療,可以吃___?")