File size: 2,741 Bytes
7950af4
 
 
 
 
 
 
 
 
a18aa53
7950af4
51ce343
957c134
7950af4
 
 
 
d4a309a
77e8b06
7950af4
 
 
 
 
 
 
6e9fdf5
 
 
70fcad1
 
 
 
 
 
 
9a5975e
7950af4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
040367d
51ce343
7950af4
a18aa53
957c134
 
7950af4
 
959da1c
 
 
 
 
 
 
 
 
 
 
 
 
a547beb
7950af4
 
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import os

from test import test_mode

import gradio as gr

# from acknowledge import acknowledge
# from announce import announce
# from details import details
from user_center import user_center
from introduce import INTRODUCE
from chat import chat
from test_chat import TESTCHAT

os.environ["no_proxy"] = "localhost,127.0.0.1,::1"


with gr.Blocks() as demo:
    # theme='gstaff/xkcd'
    with gr.Column():
        with gr.Row():
            gr.HTML(
                "<h1 style='text-align:center;'>📈基于多模态融合的抑郁症检测系统📋</h1>"
            )
        with gr.Row():
            gr.HTML("<h5 style='text-align:center;'>[_SATLab小分队]</h5>")
        with gr.Row():
            gr.HTML("<br>")
            gr.HTML("<br>")   
        # with gr.Row():
        #     with gr.Column():
        #         gr.Image(value="local_data/QR.svg",width=10,visible=False)
        #     with gr.Column():
        #         gr.Image(value="local_data/QR.png",)
        #     with gr.Column():
        #         gr.Image(value="local_data/QR.svg",width=10,visible=False)
            
        with gr.Row():
            gr.HTML(INTRODUCE)
        # with gr.Row():
        #     gr.HTML("<br>")
        #     gr.HTML("<br>")

        # with gr.Row():
        #     gr.Markdown(
        #         """
        #         ## 下面的功能面板有五个功能,您可以自由选择。\n
        #         1️⃣知情同意说明\t   2️⃣用法功能详细介绍\t   3️⃣开始自测\t    4️⃣查看个人历史数据\t    5️⃣引用与致谢\n
        #         """
        #     )

        # with gr.Row():
        #     gr.HTML("<br>")
        #     gr.HTML("<br>")
        #     gr.HTML("<br>")

        # with gr.Row():
        #     gr.Markdown("## 功能面板\n")

    # with gr.Tab("🔈️知情同意说明"):
    #     announce.render()
    # with gr.Tab("📜介绍"):
    #     details.render()
    with gr.Tab("📋自我测试"):
        test_mode.render()
    with gr.Tab("💬日常聊天"):
        chat.render()
    with gr.Tab("🗃️个人中心"):
        user_center.render()
    with gr.Tab("测试聊天机器人"):
        TESTCHAT.render()
    # with gr.Tab("💐引用与致谢"):
    #     acknowledge.render()

        
    # gr.HTML("<br><br><br>")
    # gr.HTML("<h1>了解更多</h1>")
    # with gr.Accordion("点击这里",open=False):
    #     with gr.Tab("系统介绍"):
    #         gr.Markdown("系统介绍")
    #     with gr.Tab("关于我们"):
    #         gr.Markdown("关于我们")
    #     with gr.Tab("引用致谢"):
    #         gr.Markdown("引用致谢")
    #     with gr.Tab("免责声明"):
    #         gr.Markdown("免责声明")


demo.launch()