Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -567,7 +567,12 @@ def medical_chat(user_input, history):
|
|
567 |
|
568 |
# 构建 Gradio 界面
|
569 |
with gr.Blocks(theme=gr.themes.Soft(), css="""
|
570 |
-
|
|
|
|
|
|
|
|
|
|
|
571 |
""") as demo:
|
572 |
gr.Markdown("# 🏥 专业医疗咨询助手")
|
573 |
gr.Markdown("### 本系统提供基于AI的医疗咨询服务,仅供参考,不能替代专业医生的诊断")
|
@@ -582,8 +587,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css="""
|
|
582 |
"孩子有轻微发烧,需要去医院吗?"
|
583 |
],
|
584 |
title="症状咨询",
|
585 |
-
chatbot=gr.Chatbot(height=500)
|
586 |
-
submit_btn_class="submit-btn"
|
587 |
)
|
588 |
|
589 |
with gr.Accordion("医疗免责声明", open=True):
|
|
|
567 |
|
568 |
# 构建 Gradio 界面
|
569 |
with gr.Blocks(theme=gr.themes.Soft(), css="""
|
570 |
+
/* 使用CSS选择器定位提交按钮并将其移到右侧 */
|
571 |
+
.gradio-container .submit-btn {
|
572 |
+
position: absolute;
|
573 |
+
right: 10px;
|
574 |
+
bottom: 10px;
|
575 |
+
}
|
576 |
""") as demo:
|
577 |
gr.Markdown("# 🏥 专业医疗咨询助手")
|
578 |
gr.Markdown("### 本系统提供基于AI的医疗咨询服务,仅供参考,不能替代专业医生的诊断")
|
|
|
587 |
"孩子有轻微发烧,需要去医院吗?"
|
588 |
],
|
589 |
title="症状咨询",
|
590 |
+
chatbot=gr.Chatbot(height=500)
|
|
|
591 |
)
|
592 |
|
593 |
with gr.Accordion("医疗免责声明", open=True):
|