update web demo
Browse files- owl/webapp_zh.py +65 -25
owl/webapp_zh.py
CHANGED
@@ -115,17 +115,32 @@ custom_css = """
|
|
115 |
|
116 |
.features-section {
|
117 |
display: grid;
|
118 |
-
grid-template-columns: repeat(
|
119 |
gap: 20px;
|
120 |
margin: 20px 0;
|
121 |
}
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
.feature-card {
|
124 |
background-color: white;
|
125 |
border-radius: 8px;
|
126 |
padding: 20px;
|
127 |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
128 |
transition: transform 0.3s, box-shadow 0.3s;
|
|
|
|
|
|
|
129 |
}
|
130 |
|
131 |
.feature-card:hover {
|
@@ -139,6 +154,17 @@ custom_css = """
|
|
139 |
margin-bottom: 10px;
|
140 |
}
|
141 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
/* Improved button and input styles */
|
143 |
button.primary {
|
144 |
background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
|
@@ -247,7 +273,7 @@ def create_ui():
|
|
247 |
gr.HTML("""
|
248 |
<div class="navbar">
|
249 |
<div class="navbar-logo">
|
250 |
-
🦉 OWL
|
251 |
</div>
|
252 |
<div class="navbar-menu">
|
253 |
<a href="#home">首页</a>
|
@@ -258,31 +284,46 @@ def create_ui():
|
|
258 |
</div>
|
259 |
</div>
|
260 |
<div class="header" id="home">
|
261 |
-
|
262 |
-
<p
|
263 |
</div>
|
264 |
""")
|
265 |
|
266 |
with gr.Row(elem_id="features"):
|
267 |
gr.HTML("""
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
|
|
|
|
|
|
|
|
284 |
</div>
|
285 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
286 |
|
287 |
with gr.Row():
|
288 |
with gr.Column(scale=2):
|
@@ -366,12 +407,11 @@ def create_ui():
|
|
366 |
|
367 |
gr.HTML("""
|
368 |
<div class="footer" id="about">
|
369 |
-
<h3>关于 OWL
|
370 |
<p>OWL 是一个基于CAMEL框架开发的先进多智能体协作系统,旨在通过智能体协作解决复杂问题。</p>
|
371 |
<p>© 2024 CAMEL-AI.org. 基于Apache License 2.0开源协议</p>
|
372 |
-
<p><a href="https://github.com/camel-ai/
|
373 |
-
|
374 |
-
<a href="#contact" id="contact">联系我们</a></p>
|
375 |
</div>
|
376 |
""")
|
377 |
|
|
|
115 |
|
116 |
.features-section {
|
117 |
display: grid;
|
118 |
+
grid-template-columns: repeat(3, 1fr);
|
119 |
gap: 20px;
|
120 |
margin: 20px 0;
|
121 |
}
|
122 |
|
123 |
+
@media (max-width: 1200px) {
|
124 |
+
.features-section {
|
125 |
+
grid-template-columns: repeat(2, 1fr);
|
126 |
+
}
|
127 |
+
}
|
128 |
+
|
129 |
+
@media (max-width: 768px) {
|
130 |
+
.features-section {
|
131 |
+
grid-template-columns: 1fr;
|
132 |
+
}
|
133 |
+
}
|
134 |
+
|
135 |
.feature-card {
|
136 |
background-color: white;
|
137 |
border-radius: 8px;
|
138 |
padding: 20px;
|
139 |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
140 |
transition: transform 0.3s, box-shadow 0.3s;
|
141 |
+
height: 100%;
|
142 |
+
display: flex;
|
143 |
+
flex-direction: column;
|
144 |
}
|
145 |
|
146 |
.feature-card:hover {
|
|
|
154 |
margin-bottom: 10px;
|
155 |
}
|
156 |
|
157 |
+
.feature-card h3 {
|
158 |
+
margin-top: 10px;
|
159 |
+
margin-bottom: 10px;
|
160 |
+
}
|
161 |
+
|
162 |
+
.feature-card p {
|
163 |
+
flex-grow: 1;
|
164 |
+
font-size: 0.95em;
|
165 |
+
line-height: 1.5;
|
166 |
+
}
|
167 |
+
|
168 |
/* Improved button and input styles */
|
169 |
button.primary {
|
170 |
background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
|
|
|
273 |
gr.HTML("""
|
274 |
<div class="navbar">
|
275 |
<div class="navbar-logo">
|
276 |
+
🦉 OWL 多智能体协作系统
|
277 |
</div>
|
278 |
<div class="navbar-menu">
|
279 |
<a href="#home">首页</a>
|
|
|
284 |
</div>
|
285 |
</div>
|
286 |
<div class="header" id="home">
|
287 |
+
|
288 |
+
<p>我们的愿景是彻底改变AI代理协作解决现实世界任务的方式。通过利用动态代理交互,OWL能够在多个领域实现更自然、高效和稳健的任务自动化。</p>
|
289 |
</div>
|
290 |
""")
|
291 |
|
292 |
with gr.Row(elem_id="features"):
|
293 |
gr.HTML("""
|
294 |
+
<div class="features-section">
|
295 |
+
<div class="feature-card">
|
296 |
+
<div class="feature-icon">🔍</div>
|
297 |
+
<h3>实时信息检索</h3>
|
298 |
+
<p>利用维基百科、谷歌搜索和其他在线资源获取最新信息。</p>
|
299 |
+
</div>
|
300 |
+
<div class="feature-card">
|
301 |
+
<div class="feature-icon">📹</div>
|
302 |
+
<h3>多模态处理</h3>
|
303 |
+
<p>支持处理互联网或本地的视频、图像和音频数据。</p>
|
304 |
+
</div>
|
305 |
+
<div class="feature-card">
|
306 |
+
<div class="feature-icon">🌐</div>
|
307 |
+
<h3>浏览器自动化</h3>
|
308 |
+
<p>使用Playwright框架模拟浏览器交互,实现网页操作自动化。</p>
|
309 |
+
</div>
|
310 |
+
<div class="feature-card">
|
311 |
+
<div class="feature-icon">📄</div>
|
312 |
+
<h3>文档解析</h3>
|
313 |
+
<p>从各种文档格式中提取内容,并转换为易于处理的格式。</p>
|
314 |
</div>
|
315 |
+
<div class="feature-card">
|
316 |
+
<div class="feature-icon">💻</div>
|
317 |
+
<h3>代码执行</h3>
|
318 |
+
<p>使用解释器编写和运行Python代码,实现自动化数据处理。</p>
|
319 |
+
</div>
|
320 |
+
<div class="feature-card">
|
321 |
+
<div class="feature-icon">🧰</div>
|
322 |
+
<h3>内置工具包</h3>
|
323 |
+
<p>提供丰富的工具包,支持搜索、数据分析、代码执行等多种功能。</p>
|
324 |
+
</div>
|
325 |
+
</div>
|
326 |
+
""")
|
327 |
|
328 |
with gr.Row():
|
329 |
with gr.Column(scale=2):
|
|
|
407 |
|
408 |
gr.HTML("""
|
409 |
<div class="footer" id="about">
|
410 |
+
<h3>关于 OWL 多智能体协作系统</h3>
|
411 |
<p>OWL 是一个基于CAMEL框架开发的先进多智能体协作系统,旨在通过智能体协作解决复杂问题。</p>
|
412 |
<p>© 2024 CAMEL-AI.org. 基于Apache License 2.0开源协议</p>
|
413 |
+
<p><a href="https://github.com/camel-ai/owl" target="_blank">GitHub</a>
|
414 |
+
|
|
|
415 |
</div>
|
416 |
""")
|
417 |
|