File size: 1,467 Bytes
78ca1b8
 
 
aa29eb4
78ca1b8
 
9eb8be3
78ca1b8
 
 
52e61f8
50dbe76
 
 
 
 
 
 
 
 
 
 
 
 
52e61f8
78ca1b8
 
3f3671e
78ca1b8
 
bd0bd6d
 
 
57271a8
9eb8be3
584fc9b
50dbe76
 
78ca1b8
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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(
        """
        <div style="background-color:#2a2a2a; padding: 15px; border-radius: 10px; border: 1px solid #444; text-align: center; font-size: 14px; color: #ddd;">
        ⚠️ <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.
        <br><br>
        🕒 <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.
        </div>
        """,
        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()