Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -571,6 +571,17 @@ with gr.Blocks(theme=gr.themes.Soft(), css="""
|
|
571 |
.left-column { flex: 3; }
|
572 |
.right-column { flex: 1; }
|
573 |
.chatbot-container { height: 450px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
574 |
""") as demo:
|
575 |
gr.Markdown("# 🏥 专业医疗咨询助手")
|
576 |
gr.Markdown("### 本系统提供基于AI的医疗咨询服务,仅供参考,不能替代专业医生的诊断")
|
@@ -588,7 +599,9 @@ with gr.Blocks(theme=gr.themes.Soft(), css="""
|
|
588 |
"孩子有轻微发烧,需要去医院吗?"
|
589 |
],
|
590 |
title="症状咨询",
|
591 |
-
chatbot=gr.Chatbot(height=450)
|
|
|
|
|
592 |
)
|
593 |
|
594 |
# 右侧列 - 辅助信息
|
|
|
571 |
.left-column { flex: 3; }
|
572 |
.right-column { flex: 1; }
|
573 |
.chatbot-container { height: 450px; }
|
574 |
+
/* 添加发送按钮位置的样式 */
|
575 |
+
.submit-btn {
|
576 |
+
position: absolute !important;
|
577 |
+
right: 0.5rem !important;
|
578 |
+
top: 50% !important;
|
579 |
+
transform: translateY(-50%) !important;
|
580 |
+
}
|
581 |
+
/* 确保输入框有足够的右侧padding */
|
582 |
+
.message-input {
|
583 |
+
padding-right: 3rem !important;
|
584 |
+
}
|
585 |
""") as demo:
|
586 |
gr.Markdown("# 🏥 专业医疗咨询助手")
|
587 |
gr.Markdown("### 本系统提供基于AI的医疗咨询服务,仅供参考,不能替代专业医生的诊断")
|
|
|
599 |
"孩子有轻微发烧,需要去医院吗?"
|
600 |
],
|
601 |
title="症状咨询",
|
602 |
+
chatbot=gr.Chatbot(height=450),
|
603 |
+
textbox=gr.Textbox(elem_classes="message-input"),
|
604 |
+
submit_btn=gr.Button("发送", elem_classes="submit-btn")
|
605 |
)
|
606 |
|
607 |
# 右侧列 - 辅助信息
|