Spaces:
Running
Running
Rename app.py to index.html
Browse files- app.py +0 -25
- index.html +18 -0
app.py
DELETED
|
@@ -1,25 +0,0 @@
|
|
| 1 |
-
import gradio as gr
|
| 2 |
-
from modules.apis import LLM_APIs
|
| 3 |
-
from modules.deepseek import DeepSeek_R1_Qwen_7B
|
| 4 |
-
from utils import EN_US
|
| 5 |
-
|
| 6 |
-
ZH2EN = {
|
| 7 |
-
"大模型部署实例合集": "LLM Deployment Instances",
|
| 8 |
-
"API 部署聚合": "API Aggregation",
|
| 9 |
-
"真实 DeepSeek R1 Qwen 7B 模型": "Real DeepSeek R1 Qwen 7B",
|
| 10 |
-
}
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
def _L(zh_txt: str):
|
| 14 |
-
return ZH2EN[zh_txt] if EN_US else zh_txt
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
gr.TabbedInterface(
|
| 18 |
-
interface_list=[LLM_APIs(), DeepSeek_R1_Qwen_7B()],
|
| 19 |
-
tab_names=[_L("API 部署聚合"), _L("真实 DeepSeek R1 Qwen 7B 模型")],
|
| 20 |
-
title=_L("大模型部署实例合集"),
|
| 21 |
-
).launch(
|
| 22 |
-
theme=gr.themes.Soft(),
|
| 23 |
-
css="#gradio-share-link-button-0 { display: none; }",
|
| 24 |
-
ssr_mode=False,
|
| 25 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
index.html
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<html>
|
| 2 |
+
<head>
|
| 3 |
+
<style>
|
| 4 |
+
html, body {
|
| 5 |
+
margin: 0;
|
| 6 |
+
padding: 0;
|
| 7 |
+
}
|
| 8 |
+
iframe {
|
| 9 |
+
width: 100%;
|
| 10 |
+
height: 100%;
|
| 11 |
+
border: none;
|
| 12 |
+
}
|
| 13 |
+
</style>
|
| 14 |
+
</head>
|
| 15 |
+
<body>
|
| 16 |
+
<iframe src="https://genius-society-llms.ms.show"></iframe>
|
| 17 |
+
</body>
|
| 18 |
+
</html>
|