feat(frontend): 添加数据集页面并重构主页面布局

- 新增 dataset_page 模块,实现数据集页面的基本布局
- 重构 main.py 中的页面加载方式,使用列表收集所有页面
- 更新主页面布局,将聊天页面作为第一个选项卡
- 调整设置页面的加载方式,直接使用函数调用
This commit is contained in:
carry
2025-04-06 22:49:37 +08:00
parent 2ff077bb1c
commit 841e14a093
3 changed files with 23 additions and 9 deletions

View File

@@ -1,3 +1,4 @@
from .chat_page import chat_page
from .setting_page import setting_page
from .train_page import train_page
from .train_page import train_page
from .dataset_page import dataset_page

9
frontend/dataset_page.py Normal file
View File

@@ -0,0 +1,9 @@
import gradio as gr
def dataset_page():
with gr.Blocks() as demo:
gr.Markdown("## 数据集")
with gr.Row():
with gr.Column():
pass
return demo