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()