import gradio as gr # Import tabs from modular files from components.style import custom_css from tabs.therapy_chat import therapy_chat_tab from tabs.faq_assistant import faq_assistant_tab from tabs.image_ocr_llm import image_ocr_llm_tab from tabs.symptom_checker import symptom_checker_tab # Main Gradio UI with gr.Blocks(css=custom_css) as demo: # ๐Ÿ“Œ Global disclaimer & note gr.Markdown( """
โš ๏ธ Disclaimer: This chatbot is intended for educational and demonstration purposes only. It is not a substitute for professional medical advice, diagnosis, or treatment.

๐Ÿ•’ Note: The chatbot's responses may be slightly slow as the model is large and runs on limited resources provided by the hosting environment.
""", elem_classes="centered-text" ) with gr.Tab("๐Ÿ’ฌ Therapy Chatbot"): therapy_chat_tab() with gr.Tab("๐Ÿงฌ Symptom Checker"): symptom_checker_tab() with gr.Tab("๐Ÿ“˜ FAQ Support"): faq_assistant_tab() with gr.Tab("๐Ÿงพ Report Analyzer"): image_ocr_llm_tab() gr.Markdown("Made by Raviโšก๏ธ", elem_classes="centered-text") # Launch the app demo.launch()