feat(frontend): 添加前端页面模块并实现基本布局

- 新增 chat_page.py、setting_page.py 和 train_page.py 文件,分别实现聊天、设置和微调页面的基本布局
- 添加 main.py 文件,集成所有页面并创建主应用
- 在 requirements.txt 中添加 gradio 依赖
This commit is contained in:
carry
2025-04-06 14:49:01 +08:00
parent 1f4d491694
commit 519a5f3773
5 changed files with 52 additions and 1 deletions

9
frontend/chat_page.py Normal file
View File

@@ -0,0 +1,9 @@
import gradio as gr
def chat_page():
with gr.Blocks() as demo:
gr.Markdown("## 聊天")
with gr.Row():
with gr.Column():
pass
return demo

9
frontend/setting_page.py Normal file
View File

@@ -0,0 +1,9 @@
import gradio as gr
def setting_page():
with gr.Blocks() as demo:
gr.Markdown("## 设置")
with gr.Row():
with gr.Column():
pass
return demo

9
frontend/train_page.py Normal file
View File

@@ -0,0 +1,9 @@
import gradio as gr
def train_page():
with gr.Blocks() as demo:
gr.Markdown("## 微调")
with gr.Row():
with gr.Column():
pass
return demo