llms / app.py
admin
sync ms
be22f80
raw
history blame
688 Bytes
import gradio as gr
from modules.apis import LLM_APIs
from modules.deepseek import DeepSeek_R1_Qwen_7B
from utils import EN_US
ZH2EN = {
"# 大模型部署实例合集": "# LLM Deployment Instances",
"API 部署聚合": "API Aggregation",
"真实 DeepSeek R1 Qwen 7B 模型": "Real DeepSeek R1 Qwen 7B",
}
def _L(zh_txt: str):
return ZH2EN[zh_txt] if EN_US else zh_txt
if __name__ == "__main__":
with gr.Blocks() as demo:
gr.Markdown(_L("# 大模型部署实例合集"))
with gr.Tab(_L("API 部署聚合")):
LLM_APIs()
with gr.Tab(_L("真实 DeepSeek R1 Qwen 7B 模型")):
DeepSeek_R1_Qwen_7B()
demo.launch()