YuLu0713 commited on
Commit
10d8708
·
verified ·
1 Parent(s): 332498e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -38
app.py CHANGED
@@ -84,45 +84,14 @@ def translate_text(text, source_lang, target_lang):
84
 
85
 
86
  description = """
87
- <div align="center">
88
- 👋 Hi, everyone!
89
- <br>
90
- We are <b>ByteDance Seed team.</b>
91
  </div>
92
-
93
- <p align="center">
94
- You can get to know us better through the following channels👇
95
- <br>
96
- <a href="https://seed.bytedance.com/">
97
- <img src="https://img.shields.io/badge/Website-%231e37ff?style=for-the-badge&logo=bytedance&logoColor=white"></a>
98
- <a href="https://github.com/user-attachments/assets/5793e67c-79bb-4a59-811a-fcc7ed510bd4">
99
- <img src="https://img.shields.io/badge/WeChat-07C160?style=for-the-badge&logo=wechat&logoColor=white"></a>
100
- <a href="https://www.xiaohongshu.com/user/profile/668e7e15000000000303157d?xsec_token=ABl2-aqekpytY6A8TuxjrwnZskU-6BsMRE_ufQQaSAvjc%3D&xsec_source=pc_search">
101
- <img src="https://img.shields.io/badge/Xiaohongshu-%23FF2442?style=for-the-badge&logo=xiaohongshu&logoColor=white"></a>
102
- <a href="https://www.zhihu.com/org/dou-bao-da-mo-xing-tuan-dui/">
103
- <img src="https://img.shields.io/badge/zhihu-%230084FF?style=for-the-badge&logo=zhihu&logoColor=white"></a>
104
- </p>
105
-
106
- <div align=center>
107
- <img src="https://huggingface.co/spaces/ByteDance-Seed/Seed-X/blob/main/LOGO.jpg"/></div>
108
- # Seed-X: Building Strong Multilingual Translation LLM with 7B Parameters
109
- </div>
110
-
111
- <!-- 注释:以上为Seed官方信息,可直接复制使用,请注意导入“Seed WeChat”(第12行)、“Seed logo”(第20行)图片替换 -->
112
-
113
-
114
- <p align="center">
115
- <a href="https://arxiv.org/pdf/2507.13618">
116
- <img src="https://img.shields.io/badge/Seed--X-Report-blue"></a>
117
- <a href="https://huggingface.co/collections/ByteDance-Seed/seed-x-6878753f2858bc17afa78543">
118
- <img src="https://img.shields.io/badge/Seed--X-Hugging Face-brightgreen"></a>
119
- <a href="https://github.com/ByteDance-Seed/Seed-X-7B/blob/main/LICENSE.openmdw">
120
- <img src="https://img.shields.io/badge/License-OpenMDW-yellow"></a>
121
- </p>
122
  """
123
 
124
  # 创建 Gradio 界面
125
- with gr.Blocks(title="Qwen3-MT Translator") as demo:
126
  gr.Markdown(description)
127
 
128
  with gr.Row():
@@ -157,9 +126,9 @@ with gr.Blocks(title="Qwen3-MT Translator") as demo:
157
  # # 示例
158
  gr.Examples(
159
  examples=[
160
- ["我说一句你说一车啊", "Chinese", "English","I say one thing, and you come up with a whole bunch of responses"],
161
- ["INTJ总是装E", "Chinese", "English", "INTJs always pretend to be extraverts"],
162
- ["Their relationship is a total situationship.", "English", "Chinese","他们的关系完全是逢场作戏。"],
163
  ],
164
  inputs=[source_text, source_lang, target_lang],
165
  outputs=target_text,
 
84
 
85
 
86
  description = """
87
+ <div style="text-align: center;">
88
+ <img src="https://huggingface.co/spaces/ByteDance-Seed/Seed-X/blob/main/LOGO.jpg" alt="Banner" style="max-width: 800px; width: 100%; margin: 0 auto;">
89
+ <h1 style="color: #0077be;">Seed-X: Building Strong Multilingual Translation LLM with 7B Parameters</h1>
 
90
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  """
92
 
93
  # 创建 Gradio 界面
94
+ with gr.Blocks(title="Seed-X") as demo:
95
  gr.Markdown(description)
96
 
97
  with gr.Row():
 
126
  # # 示例
127
  gr.Examples(
128
  examples=[
129
+ ["我说一句你说一车啊", "Chinese", "English"],
130
+ ["INTJ总是装E", "Chinese", "English"],
131
+ ["Their relationship is a total situationship.", "English", "Chinese"],
132
  ],
133
  inputs=[source_text, source_lang, target_lang],
134
  outputs=target_text,