Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,19 @@ from tabs.symptom_checker import symptom_checker_tab
|
|
| 8 |
|
| 9 |
# Main Gradio UI
|
| 10 |
with gr.Blocks(css=custom_css) as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
with gr.Tab("💬 Therapy Chatbot"):
|
| 12 |
therapy_chat_tab()
|
| 13 |
|
|
@@ -17,5 +30,7 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 17 |
with gr.Tab("📘 FAQ Support"):
|
| 18 |
faq_assistant_tab()
|
| 19 |
|
|
|
|
|
|
|
| 20 |
# Launch the app
|
| 21 |
demo.launch()
|
|
|
|
| 8 |
|
| 9 |
# Main Gradio UI
|
| 10 |
with gr.Blocks(css=custom_css) as demo:
|
| 11 |
+
|
| 12 |
+
# 📌 Global disclaimer & note
|
| 13 |
+
gr.Markdown(
|
| 14 |
+
"""
|
| 15 |
+
<div style="background-color:#2a2a2a; padding: 15px; border-radius: 10px; border: 1px solid #444; text-align: center; font-size: 14px; color: #ddd;">
|
| 16 |
+
⚠️ <strong>Disclaimer:</strong> This chatbot is intended for <strong>educational and demonstration purposes only</strong>. It is <strong>not a substitute</strong> for professional medical advice, diagnosis, or treatment.
|
| 17 |
+
<br><br>
|
| 18 |
+
🕒 <strong>Note:</strong> The chatbot's responses may be slightly slow as the model is <strong>large and runs on limited resources</strong> provided by the hosting environment.
|
| 19 |
+
</div>
|
| 20 |
+
""",
|
| 21 |
+
elem_classes="centered-text"
|
| 22 |
+
)
|
| 23 |
+
|
| 24 |
with gr.Tab("💬 Therapy Chatbot"):
|
| 25 |
therapy_chat_tab()
|
| 26 |
|
|
|
|
| 30 |
with gr.Tab("📘 FAQ Support"):
|
| 31 |
faq_assistant_tab()
|
| 32 |
|
| 33 |
+
gr.Markdown("Made by Ravi⚡️", elem_classes="centered-text")
|
| 34 |
+
|
| 35 |
# Launch the app
|
| 36 |
demo.launch()
|